Make WordPress Core

Changeset 23201


Ignore:
Timestamp:
12/26/2012 08:26:19 PM (12 years ago)
Author:
nacin
Message:

Encode brackets in the load-scripts.php URL, as these are considered unsafe characters and can be misunderstood. (See RFC 1738.) In particular, a "security" rewrite rule from a plugin blocked URLs with unencoded brackets. fixes #22899 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r23183 r23201  
    704704
    705705        $concat = str_split( $concat, 128 );
    706         $concat = 'load[]=' . implode( '&load[]=', $concat );
     706        $concat = 'load%5B%5D=' . implode( '&load%5B%5D=', $concat );
    707707
    708708        $src = $wp_scripts->base_url . "/wp-admin/load-scripts.php?c={$zip}&" . $concat . '&ver=' . $wp_scripts->default_version;
Note: See TracChangeset for help on using the changeset viewer.