Rev 14 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14 | Rev 15 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | $xxx_go = false; |
25 | $xxx_go = false; |
26 | foreach ($xxx_directories_need_anti_xss as $xxx_directory_need_anti_xss) { /* @phpstan-ignore-line */ |
26 | foreach ($xxx_directories_need_anti_xss as $xxx_directory_need_anti_xss) { /* @phpstan-ignore-line */ |
27 | if ($xxx_negate = (substr($xxx_directory_need_anti_xss,0,1) === '!')) { |
27 | if ($xxx_negate = (substr($xxx_directory_need_anti_xss,0,1) === '!')) { |
28 | $xxx_directory_need_anti_xss = substr($xxx_directory_need_anti_xss,1); |
28 | $xxx_directory_need_anti_xss = substr($xxx_directory_need_anti_xss,1); |
29 | } |
29 | } |
30 | if (strpos($_SERVER['SCRIPT_FILENAME'], $xxx_directory_need_anti_xss) === 0) { |
30 | if (strpos($_SERVER['SCRIPT_FILENAME']??'', $xxx_directory_need_anti_xss) === 0) { |
31 | $xxx_go = !$xxx_negate; |
31 | $xxx_go = !$xxx_negate; |
32 | } |
32 | } |
33 | if (strpos($_SERVER['PWD'] ?? '', $xxx_directory_need_anti_xss) === 0) { |
33 | if (strpos(rtrim($_SERVER['PWD']??'',DIRECTORY_SEPARATOR), rtrim($xxx_directory_need_anti_xss,DIRECTORY_SEPARATOR)) === 0) { |
34 | $xxx_go = !$xxx_negate; |
34 | $xxx_go = !$xxx_negate; |
35 | } |
35 | } |
36 | } |
36 | } |
37 | unset($xxx_directories_need_anti_xss); |
37 | unset($xxx_directories_need_anti_xss); |
38 | unset($xxx_directory_need_anti_xss); |
38 | unset($xxx_directory_need_anti_xss); |