Skip to content

Commit fb93381

Browse files
committed
fix banned pages
1 parent 81eba7d commit fb93381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ function plugin_init_fields() {
3535
$pages_to_ban = array(
3636
"bollorelogisticsticket/front/ticket.form.php"
3737
);
38-
if (isset($_SERVER['HTTP_REFERER'])) {
38+
if (isset($_SERVER['REQUEST_URI'])) {
3939
$add_javascript = true;
4040
foreach ($pages_to_ban as $page) {
41-
if (strpos($_SERVER['HTTP_REFERER'], $page) !== false) {
41+
if (strpos($_SERVER['REQUEST_URI'], $page) !== false) {
4242
$add_javascript = false;
4343
break;
4444
}

0 commit comments

Comments
 (0)