Fix referer checks with escaped URLs
authorSimo Sorce <simo@redhat.com>
Tue, 20 May 2014 19:20:43 +0000 (15:20 -0400)
committerSimo Sorce <simo@redhat.com>
Tue, 20 May 2014 20:29:44 +0000 (16:29 -0400)
commit8d082183f55722777ef2ff4baaa0af9962c3ab2e
treee3539fca111c0aa4b7d8524455c817fec6cc0f84
parent4fbacd9897dfcdcb23a325e78f837d9f8d372cb6
Fix referer checks with escaped URLs

When a SP name included spaces the referer checker would fail to match
the url. It would try to return a 403 error, unfortunately this would
also trip as a return instead of an exception was used, ending up with
a 500 error being returned to the user.

Fix url checks by unquoting before comparing.
Fix error reporting by rasing an exception when needed instead of
returning.

Signed-off-by: Simo Sorce <simo@redhat.com>
ipsilon/util/page.py