resolve/refinerycms — pull request #1160 by atj (2011-12-02 09:58:19+00:00)
Title: Fix for unescaped regexp based on user input

Had a nice exception email this morning:

A ActionView::Template::Error occurred in pages#show:

unmatched ): /^\/w00tw00t.at.blackhats.romanian.anti-sec:)\/?/
vendor/bundle/ruby/1.8/gems/refinerycms-core-1.0.9/lib/refinery/application_controller.rb:64:in `home_page?'

Clearly that request should return a 404 not a 500.

I'm afraid I haven't tested the fix yet but it's trivial enough that I can't see how it could break anything (famous last words!).