Changes to raw page security handler:
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Apr 2005 08:51:39 +0000 (08:51 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Apr 2005 08:51:39 +0000 (08:51 +0000)
commitdb4afa47abe81552897201f6b9034bee5ca6e5b2
tree64bb32a96b59286e925b24639ca87ec8ab930fa0
parentc59896a7093867386c6ea5be62681a2a009d2e6e
Changes to raw page security handler:
* Use SCRIPT_URL instead of PHP_SELF if available. This fixes a problem with
some hosts using rewrite rules for subdomains and CGI PHP which breaks
PHP_SELF.
* Instead of redirecting to the canonical URL on a suspect, just return a
403 Forbidden error. This might annoy a small number of people manually
constructing incorrect action=raw URLs, but should be much less invasive
than an infinite redirect loop when there are configuration bugs.
includes/RawPage.php