summaryrefslogtreecommitdiff
path: root/includes/sys_page.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2011-06-03 13:53:55 +0200
committerPhilip Häusler <msquare@notrademark.de>2011-06-03 13:53:55 +0200
commit28ac46aa4e9c45aad35aab0fb2f28a0677fee453 (patch)
tree92b6dca8effcde6ee5ff8ba22917a5dff908490e /includes/sys_page.php
parent170f8d2342e87f91f3ee3c4ad8ef161095666349 (diff)
parent75a7755041c4e4b9c5c31bccabc917e188982e80 (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.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/sys_page.php b/includes/sys_page.php
index 2af5f729..e499cd57 100644
--- a/includes/sys_page.php
+++ b/includes/sys_page.php
@@ -8,6 +8,14 @@ function strip_request_item($name) {
);
}
+function strip_request_item_nl($name) {
+ return preg_replace(
+ "/([^\p{L}\p{P}\p{Z}\p{N}\n]{1,})/ui",
+ '',
+ strip_tags($_REQUEST[$name])
+ );
+}
+
function error($msg) {
return '<p class="error">' . $msg . '</p>';
}