Hi there.

Banged my head on why Insertion.Before was causing Safari (1.3.2) to
crash.

Finally chased it down to the StripScripts function, and narrowed it
to the regex being used.

Seems Safari doesn't like the '<script[^>]*>([\u0001-\uFFFF]*?)</
script>' regex, so I've replaced it locally with '(?:<script.*?>)((\n|
\r|.)*?)(?:</script>)'.

I'm uncertain that this regex is going to catch every instance of
attempted script insertion, but it's good enough for what we're using
here.

Can anybody either suggest a better regex? Or is there something else
that I'm missing that's causing the Safari crash?

Thanks,
Sheldon


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to