Remove unreachable block
authorArlo Breault <abreault@wikimedia.org>
Wed, 5 Aug 2015 18:26:51 +0000 (11:26 -0700)
committerArlo Breault <abreault@wikimedia.org>
Wed, 5 Aug 2015 18:26:51 +0000 (11:26 -0700)
 * After 82ed5e1d9cf127a34689f46491908c59892e3a72

Change-Id: I569e4ebeff2934b85608c4c37a5eaecfc99ddc89

includes/Sanitizer.php

index 387f24f..cd936f3 100644 (file)
@@ -349,9 +349,6 @@ class Sanitizer {
                                          \"([^<\"]*)\"
                                         | '([^<']*)'
                                         |  ([a-zA-Z0-9!#$%&()*,\\-.\\/:;<>?@[\\]^_`{|}~]+)
-                                        |  (\#[0-9a-fA-F]+) # Technically wrong, but lots of
-                                                                                # colors are specified like this.
-                                                                                # We'll be normalizing it.
                                        )
                                )?(?=$space|\$)/sx";
                }
@@ -1263,10 +1260,7 @@ class Sanitizer {
         * @return string
         */
        private static function getTagAttributeCallback( $set ) {
-               if ( isset( $set[6] ) ) {
-                       # Illegal #XXXXXX color with no quotes.
-                       return $set[6];
-               } elseif ( isset( $set[5] ) ) {
+               if ( isset( $set[5] ) ) {
                        # No quotes.
                        return $set[5];
                } elseif ( isset( $set[4] ) ) {