]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/pluggable.php
WordPress 4.2.2
[autoinstalls/wordpress.git] / wp-includes / pluggable.php
index ffe2a0739521d017ccdf49d49703a9d29e72eec5..0779010dce52fed2818e748f8ef0923f3561385f 100644 (file)
@@ -1218,7 +1218,7 @@ function wp_sanitize_redirect($location) {
                        |   \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences   11110xxx 10xxxxxx * 3
                        |   [\xF1-\xF3][\x80-\xBF]{3}
                        |   \xF4[\x80-\x8F][\x80-\xBF]{2}
                        |   \xF0[\x90-\xBF][\x80-\xBF]{2} # four-byte sequences   11110xxx 10xxxxxx * 3
                        |   [\xF1-\xF3][\x80-\xBF]{3}
                        |   \xF4[\x80-\x8F][\x80-\xBF]{2}
-               ){1,50}                              # ...one or more times
+               ){1,40}                              # ...one or more times
                )/x';
        $location = preg_replace_callback( $regex, '_wp_sanitize_utf8_in_redirect', $location );
        $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!*\[\]()]|i', '', $location);
                )/x';
        $location = preg_replace_callback( $regex, '_wp_sanitize_utf8_in_redirect', $location );
        $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!*\[\]()]|i', '', $location);