summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-05-16 19:58:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-05-16 19:58:38 +0000
commit2002b9616d90ce43860468b7a246a395723c1c44 (patch)
tree41be2416c8531790463965f9612ace1445bc1704 /includes
parent61f4dfc982fc6c1c20377691e2adfb3e4c5f68f9 (diff)
downloadbrdo-2002b9616d90ce43860468b7a246a395723c1c44.tar.gz
brdo-2002b9616d90ce43860468b7a246a395723c1c44.tar.bz2
#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'].
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 190250a36..9dd8ecc1d 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -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)];
}