summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-02 23:46:53 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-02 23:46:53 +0200
commit576c9680cf8650b6120bbb1e8ae3befdeae4155e (patch)
tree19e01483dd2b1ec05d696d526a99cdde98a90a00 /includes/sys_page.php
parent0d6499f7f1aadabc345f6896fa3ad26f7a299150 (diff)
parentcb1736d180ce91cb8b66acfe6cf7cede3a04d097 (diff)
Merge branch 'spezial_includes_camp' of ssh://git.planetcyborg.de/home/git/projects/engelsystem into spezial_includes_camp
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
+?>