* (bug 829) Fix URL-escaping on block success
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 29 Jan 2005 07:43:30 +0000 (07:43 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 29 Jan 2005 07:43:30 +0000 (07:43 +0000)
includes/SpecialBlockip.php

index e83e990..5987a9c 100644 (file)
@@ -175,7 +175,8 @@ class IPBlockForm {
 
                        # Report to the user
                        $titleObj = Title::makeTitle( NS_SPECIAL, 'Blockip' );
-                       $wgOut->redirect( $titleObj->getFullURL( 'action=success&ip='.$this->BlockAddress ) );
+                       $wgOut->redirect( $titleObj->getFullURL( 'action=success&ip=' .
+                               urlencode( $this->BlockAddress ) ) );
                }
        }