aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Web/CheckJS.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-07-19 17:19:19 -0700
committerMario <mario@mariovavti.com>2018-07-20 09:16:35 +0200
commit85e21ce61731f1fac331becc0977b0f0d83e346e (patch)
treea2192e64cd36f7333385eab5d5e7beb0999833a9 /Zotlabs/Web/CheckJS.php
parent157a9e895ccdb6f6f4ff68e3bfff698a7ea7d369 (diff)
downloadvolse-hubzilla-85e21ce61731f1fac331becc0977b0f0d83e346e.tar.gz
volse-hubzilla-85e21ce61731f1fac331becc0977b0f0d83e346e.tar.bz2
volse-hubzilla-85e21ce61731f1fac331becc0977b0f0d83e346e.zip
checkjs fix ($page not bin-hex in all cases)
(cherry picked from commit a94c9d270906136f69156c0e7c0bd2c8a2e63d1a)
Diffstat (limited to 'Zotlabs/Web/CheckJS.php')
-rw-r--r--Zotlabs/Web/CheckJS.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Web/CheckJS.php b/Zotlabs/Web/CheckJS.php
index c8547b6dd..e83ccf27b 100644
--- a/Zotlabs/Web/CheckJS.php
+++ b/Zotlabs/Web/CheckJS.php
@@ -17,9 +17,9 @@ class CheckJS {
else
$this->jsdisabled = 0;
- if(! $this->jsdisabled) {
- $page = bin2hex(\App::$query_string);
+ $page = bin2hex(\App::$query_string);
+ if(! $this->jsdisabled) {
if($test) {
$this->jsdisabled = 1;
if(array_key_exists('jsdisabled',$_COOKIE))