From 6700cb499d79228eaf9abb76846aaf39cb721575 Mon Sep 17 00:00:00 2001 From: Robert Hofer Date: Thu, 18 Dec 2014 14:13:10 +0000 Subject: [PATCH] restrict statistik kurzbz --- include/statistik.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/statistik.class.php b/include/statistik.class.php index 96304eae3..c2bf7d642 100644 --- a/include/statistik.class.php +++ b/include/statistik.class.php @@ -254,6 +254,10 @@ class statistik extends basis_db if(is_null($new)) $new = $this->new; + /* Da derzeit die statistik_kurzbz der primary key in der DB ist, + * darf er vorerst nur [a-zA-Z0-9_] (\w) enthalten. (bis auf autoincrement + * integer umgestellt ist) + */ $this->statistik_kurzbz = preg_replace('/\W/', '', $this->statistik_kurzbz); if($new)