diff options
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r-- | includes/sys_page.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/includes/sys_page.php b/includes/sys_page.php index ab8b05e2..2af5f729 100644 --- a/includes/sys_page.php +++ b/includes/sys_page.php @@ -1,4 +1,13 @@ <?php + +function strip_request_item($name) { + return preg_replace( + "/([^\p{L}\p{P}\p{Z}\p{N}]{1,})/ui", + '', + strip_tags($_REQUEST[$name]) + ); +} + function error($msg) { return '<p class="error">' . $msg . '</p>'; } @@ -6,4 +15,4 @@ function error($msg) { function success($msg) { return '<p class="success">' . $msg . '</p>'; } -?>
\ No newline at end of file +?> |