From 1280a9abfa94156aad2dc8953ced30effb9bf875 Mon Sep 17 00:00:00 2001 From: zottel Date: Thu, 16 Jan 2014 14:22:59 +0100 Subject: prevent reload loop if JS is active, but no cookies accepted --- index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 640a2b6a1..6ffef19cb 100755 --- a/index.php +++ b/index.php @@ -245,7 +245,11 @@ if(! x($a->page,'content')) /* set JS cookie */ if($_COOKIE['jsAvailable'] != 1) { - $a->page['content'] .= ''; + $a->page['content'] .= ''; + /* emulate JS cookie if cookies are not accepted */ + if ($_GET['JS'] == 1) { + $_COOKIE['jsAvailable'] = 1; + } } -- cgit v1.2.3