diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-25 14:55:36 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-25 14:55:36 +0000 |
commit | 216322ac98d2298a016ff682e7bc9356147d85f5 (patch) | |
tree | 7ebe9d200bb02ad48f32a44b4c9a50aa1c536a8d /misc/drupal.js | |
parent | 6143f13c413a4904bcdeef4be606c16daef6eca0 (diff) | |
download | brdo-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/drupal.js')
-rw-r--r-- | misc/drupal.js | 2 |
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); } |