Index: trunk/extensions/Suhosin/Suhosin.php |
— | — | @@ -53,10 +53,13 @@ |
54 | 54 | # $wgResourceLoaderMaxQueryLength = -1; |
55 | 55 | |
56 | 56 | if ( extension_loaded( "suhosin" ) |
57 | | - && ini_get( "suhosin.get.max_name_length" ) |
58 | | - && isset( $wgResourceLoaderMaxQueryLength ) |
59 | | - && ( $wgResourceLoaderMaxQueryLength > 0 ) ) { |
| 57 | + && ini_get( "suhosin.get.max_value_length" ) |
| 58 | + && isset( $wgResourceLoaderMaxQueryLength ) ) { |
60 | 59 | |
61 | | - // suhosin is active, thus do something meaningful with ini_get( "suhosin.get.max_name_length" ) |
62 | | - $wgResourceLoaderMaxQueryLength = min( $wgResourceLoaderMaxQueryLength, ini_get( "suhosin.get.max_name_length" ) ); |
| 60 | + if ( $wgResourceLoaderMaxQueryLength > 0 ) { |
| 61 | + // suhosin is active, thus do something meaningful with ini_get( "suhosin.get.max_value_length" ) |
| 62 | + $wgResourceLoaderMaxQueryLength = min( $wgResourceLoaderMaxQueryLength, ini_get( "suhosin.get.max_value_length" ) ); |
| 63 | + } else { |
| 64 | + $wgResourceLoaderMaxQueryLength = ini_get( "suhosin.get.max_value_length" ); |
| 65 | + } |
63 | 66 | } |