Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #8332: scriptfragment-no-unicode.diff

File scriptfragment-no-unicode.diff, 454 bytes (added by grant, 1 year ago)

Replaced Unicode range with another any-character character class.

  • src/prototype.js

    old new  
    1818       document.createElement('form').__proto__) 
    1919  }, 
    2020 
    21   ScriptFragment: '<script[^>]*>([\u0001-\uFFFF]*?)<\/script>', 
     21  ScriptFragment: '<script[^>]*>([\\s\\S]*?)<\/script>', 
    2222  JSONFilter: /^\/\*-secure-\s*(.*)\s*\*\/\s*$/,   
    2323   
    2424  emptyFunction: function() { },