Merge "Avoid double escaped expiry time on action=protect"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 29 Jan 2015 20:14:37 +0000 (20:14 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 29 Jan 2015 20:14:37 +0000 (20:14 +0000)
includes/ProtectionForm.php

index 4eae1ce..f777a37 100644 (file)
@@ -412,11 +412,9 @@ class ProtectionForm {
                                } else {
                                        list( $show, $value ) = explode( ":", $option );
                                }
-                               $show = htmlspecialchars( $show );
-                               $value = htmlspecialchars( $value );
                                $expiryFormOptions .= Xml::option(
                                        $show,
-                                       $value,
+                                       htmlspecialchars( $value ),
                                        $this->mExpirySelection[$action] === $value
                                ) . "\n";
                        }