revert the reversal of checkjs logic, but still restrict the behaviour scope to just those urls that require it
This commit is contained in:
@@ -57,7 +57,7 @@ function get($update = 0, $load = false) {
|
||||
if($load)
|
||||
$_SESSION['loadtime'] = datetime_convert();
|
||||
|
||||
$checkjs = new \Zotlabs\Web\CheckJS();
|
||||
$checkjs = new \Zotlabs\Web\CheckJS(1);
|
||||
|
||||
$category = $datequery = $datequery2 = '';
|
||||
|
||||
|
@@ -10,7 +10,7 @@ class Display extends \Zotlabs\Web\Controller {
|
||||
// logger("mod-display: update = $update load = $load");
|
||||
|
||||
|
||||
$checkjs = new \Zotlabs\Web\CheckJS();
|
||||
$checkjs = new \Zotlabs\Web\CheckJS(1);
|
||||
|
||||
|
||||
if($load)
|
||||
|
@@ -5,11 +5,11 @@ namespace Zotlabs\Module;
|
||||
class Nojs extends \Zotlabs\Web\Controller {
|
||||
|
||||
function init() {
|
||||
|
||||
setcookie('jsdisabled', 1, 0);
|
||||
$p = $_GET['query'];
|
||||
$n = ((argc() > 1) ? intval(argv(1)) : 1);
|
||||
setcookie('jsdisabled', $n, 0, '/');
|
||||
$p = $_GET['redir'];
|
||||
$hasq = strpos($p,'?');
|
||||
goaway(z_root() . (($p) ? '/' . $p : '') . (($hasq) ? '' : '?f=' ) . '&jsdisabled=1');
|
||||
goaway(z_root() . (($p) ? '/' . $p : '') . (($hasq) ? '' : '?f=' ) . '&jsdisabled=' . $n);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user