You might be interested in this thread from Feb which covers the same
topic:
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/
thread/814cf73466f117fe/57901a14fc365372
This recent thread from Prototype-core may also be useful:
http://groups.google.com/group/prototype-core/browse_thread/thread/
57ff7a34b2bc51e3
TAG
On May 17, 2007, at 11:39 AM, shelfoo wrote:
>
> 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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---