diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,6 +2,12 @@ include "includes/theme.inc"; +### Security check: +if (strstr($number, " ") || strstr($date, " ")) { + watchdog("error", "main page: attempt to provide malicious input through URI"); + exit(); +} + ### Initialize/pre-process variables: $number = ($user->stories) ? $user->stories : 10; $date = ($date) ? $date : time(); |