#454992 by sun and bengtam: Remove 'q' from the possible letters that can be appended to an aggregated css/js string, so it's not confused with ['q'].

merge-requests/26/head
Angie Byron 2009-05-16 19:58:38 +00:00
parent 61f4dfc982
commit 2002b9616d
1 changed files with 2 additions and 1 deletions

View File

@ -4243,7 +4243,8 @@ function drupal_flush_all_caches() {
function _drupal_flush_css_js() {
$string_history = variable_get('css_js_query_string', '00000000000000000000');
$new_character = $string_history[0];
$characters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
// Not including 'q' to allow certain JavaScripts to re-use query string.
$characters = 'abcdefghijklmnoprstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
while (strpos($string_history, $new_character) !== FALSE) {
$new_character = $characters[mt_rand(0, strlen($characters) - 1)];
}