If I use http://site.com/index.php?page=45
everything looks ok (wanted page loads).
But when I go through http://site.com/index.php?page=45'
or http://site.com/index.php?page=45"
(quotes are added after digits) page prints an error:
Unhandled Exception (Debug)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\'
ORDER BY datePub DESC
LIMIT 10' at line 9
SELECT *, date_format(date, '%d') AS day, date_format(date, '%m') AS month, date_format(date, '%Y') AS year FRO...
// and paths to my scripts
Thats like a pizza to beer for hacker.
How to filter unwanted symbols (like quotes), so the page won't show my db query (my own error text maybe)?
I have switched off error reporting, but its not a solution (can't use it everywhere).