summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-25 14:55:36 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-25 14:55:36 +0000
commit216322ac98d2298a016ff682e7bc9356147d85f5 (patch)
tree7ebe9d200bb02ad48f32a44b4c9a50aa1c536a8d /misc
parent6143f13c413a4904bcdeef4be606c16daef6eca0 (diff)
downloadbrdo-216322ac98d2298a016ff682e7bc9356147d85f5.tar.gz
brdo-216322ac98d2298a016ff682e7bc9356147d85f5.tar.bz2
#177906 by douggreen: JavaScript cookie detection should use path=/ to avoid broken situations when run at a 'subdirectory'
Diffstat (limited to 'misc')
-rw-r--r--misc/drupal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index e28dc2c8b..c7e955aae 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -339,7 +339,7 @@ if (Drupal.jsEnabled) {
// Global Killswitch on the <html> element
document.documentElement.className = 'js';
// 'js enabled' cookie
- document.cookie = 'has_js=1';
+ document.cookie = 'has_js=1; path=/';
// Attach all behaviors.
$(document).ready(Drupal.attachBehaviors);
}