Rev 9 | Rev 12 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9 | Rev 10 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | // ATTENTION: This is a very simple XSS "Firewall". There ARE many other ways to do an XSS attack, so please don't rely on this script! |
3 | // ATTENTION: This is a very simple XSS "Firewall". There ARE many other ways to do an XSS attack, so please don't rely on this script! |
4 | 4 | ||
5 | $xxx_vts_prepend_config = array(); |
5 | $xxx_vts_prepend_config = array(); |
6 | if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/config.local.php')) include $xxx_vts_prepend_config_file; |
6 | if (file_exists($xxx_vts_prepend_config_file = __DIR__.'/../config.local.php')) include $xxx_vts_prepend_config_file; |
7 | unset($xxx_vts_prepend_config_file); |
7 | unset($xxx_vts_prepend_config_file); |
8 | $xxx_directories_need_anti_xss = $xxx_vts_prepend_config['directories_need_anti_xss']; |
8 | $xxx_directories_need_anti_xss = $xxx_vts_prepend_config['directories_need_anti_xss']; |
9 | unset($xxx_vts_prepend_config); |
9 | unset($xxx_vts_prepend_config); |
10 | 10 | ||
11 | function ___check_xss___($str) { |
11 | function ___check_xss___($str) { |