Make WordPress Core


Ignore:
Timestamp:
12/05/2012 06:57:56 PM (12 years ago)
Author:
nacin
Message:

Script loader: Chunk the script names as passed to load-scripts.php into 128-character pieces. Avoids hitting a limit for the length of a single variable, such as suhosin.get.max_value_length which defaults to 512. fixes #22757.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/load-scripts.php

    r22531 r23074  
    115115}
    116116
    117 $load = preg_replace( '/[^a-z0-9,_-]+/i', '', $_GET['load'] );
     117$load = $_GET['load'];
     118if ( is_array( $load ) )
     119    $load = implode( '', $load );
     120
     121$load = preg_replace( '/[^a-z0-9,_-]+/i', '', $load );
    118122$load = explode(',', $load);
    119123
Note: See TracChangeset for help on using the changeset viewer.