diff options
author | Thomas Penteker <tek@serverop.de> | 2015-02-08 16:38:03 +0100 |
---|---|---|
committer | Thomas Penteker <tek@serverop.de> | 2015-02-08 16:38:03 +0100 |
commit | 31162694620d1f36a59639dbd0d1b00bf4a740f8 (patch) | |
tree | 3a16d66bc2887f0730801d254203989a6a1d3e76 | |
parent | 63c10a40241350841bd096a09df953bd6c33a75b (diff) | |
download | webtools-31162694620d1f36a59639dbd0d1b00bf4a740f8.tar.gz webtools-31162694620d1f36a59639dbd0d1b00bf4a740f8.tar.xz |
index.php: _really_ sanitize user input
-rwxr-xr-x | portdb/portdb/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/portdb/portdb/index.php b/portdb/portdb/index.php index 01253ae..bb1b2b4 100755 --- a/portdb/portdb/index.php +++ b/portdb/portdb/index.php @@ -13,7 +13,7 @@ function nospam($mail) { } function sanitize($str) { - return $str; + return preg_replace("/[^[:alnum:][:space:]_+-\.]/ui", '', $str); } function localrepo($name) { |