Remove double escaping in Special:Block
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Sat, 6 Dec 2014 10:47:19 +0000 (11:47 +0100)
committerLegoktm <legoktm.wikipedia@gmail.com>
Thu, 18 Dec 2014 20:04:27 +0000 (20:04 +0000)
This function is used in two extensions, which also pass it to
HtmlForm, so no underescaping there either.

Change-Id: I93325051b3a6ef8fc242437a736b5c84bda56b7d

includes/specials/SpecialBlock.php

index 14d97eb..195e64d 100644 (file)
@@ -829,7 +829,7 @@ class SpecialBlock extends FormSpecialPage {
                        }
 
                        list( $show, $value ) = explode( ':', $option );
-                       $a[htmlspecialchars( $show )] = htmlspecialchars( $value );
+                       $a[$show] = $value;
                }
 
                return $a;