From 216322ac98d2298a016ff682e7bc9356147d85f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 25 Sep 2007 14:55:36 +0000 Subject: #177906 by douggreen: JavaScript cookie detection should use path=/ to avoid broken situations when run at a 'subdirectory' --- misc/drupal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') 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 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); } -- cgit v1.2.3