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

Ticket #9663: scriptFragment_safari_fix.diff

File scriptFragment_safari_fix.diff, 439 bytes (added by jdalton, 10 months ago)

implemented the new regexp for scriptFragment tested on safari 2.0.4

  • prototype.js

    old new  
    2020        document.createElement('form').__proto__ 
    2121  }, 
    2222 
    23   ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>', 
     23  ScriptFragment: '<script[^>]*>([^\\x00]*?)<\/script>', 
    2424  JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,   
    2525   
    2626  emptyFunction: function() { },