Make WordPress Core

Changeset 23202


Ignore:
Timestamp:
12/26/2012 08:29:28 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 the 3.5 branch.

--Thia and those below, will be ignored--

M script-loader.php

File:
1 edited

Legend:

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

    r23074 r23202  
    701701
    702702        $concat = str_split( $concat, 128 );
    703         $concat = 'load[]=' . implode( '&load[]=', $concat );
     703        $concat = 'load%5B%5D=' . implode( '&load%5B%5D=', $concat );
    704704
    705705        $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.