Last active
August 29, 2015 14:20
-
-
Save kooler62/8d36c0dd202749968dbc to your computer and use it in GitHub Desktop.
xss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| trim(htmlspecialchars($_GET[post])); | |
| //для страниц $_GET[page] | |
| //защита от отрицательных, нулевых, спец знаков | |
| if (empty($_GET[page])) { | |
| $vid=0; | |
| }else{ | |
| //10 количество выводимих элементов на странице | |
| $vid=(abs((int) $_GET['page'])-1)*10; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment