summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-06-02 23:41:50 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-06-02 23:41:50 +0200
commitcb1736d180ce91cb8b66acfe6cf7cede3a04d097 (patch)
treec14d968c14d362b99d5450ebca938c9895bfb191 /includes/sys_page.php
parent3afd05636e46aedb53e1c1d954d23d6563b5e104 (diff)
include/pages/admin_angel_types: Cleanup; add strip_request_item function
Diffstat (limited to 'includes/sys_page.php')
-rw-r--r--includes/sys_page.php11
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
+?>