From: hickert Date: Tue, 3 Nov 2009 14:53:54 +0000 (+0000) Subject: Allow to search for some special chars in phone reports X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c73b547d2071516e083d42324139cf362f6f8918;p=gosa.git Allow to search for some special chars in phone reports git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14735 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc b/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc index 926355a19..bbb6f98ea 100644 --- a/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc +++ b/gosa-plugins/gofon/gofon/fonreports/class_fonreport.inc @@ -69,7 +69,7 @@ class fonreport extends plugin } foreach( array("year", "month", "search_for", "search_base","selected_server") as $type){ if (isset($_POST[$type])){ - $this->$type= $_POST[$type]; + $this->$type= get_post($type); } } @@ -89,7 +89,7 @@ class fonreport extends plugin } /* remove unwanted tags */ - $this->search_for = stripslashes(preg_replace("/[^0-9a-z\*\+ \-]/i","",$this->search_for)); + $this->search_for = stripslashes(preg_replace("/[^0-9a-z\*\+ \-\/]/i","",$this->search_for)); foreach($this->attributes_SO as $name){ $fonfilter[$name] = $this->$name; @@ -149,7 +149,7 @@ class fonreport extends plugin $smarty->assign("plug", "?plug=".validate($_GET['plug'])); $smarty->assign("launchimage", get_template_path('images/launch.png')); $smarty->assign("search_image", get_template_path('images/lists/search.png')); - $smarty->assign("search_for", $this->search_for); + $smarty->assign("search_for", htmlentities($this->search_for)); $smarty->assign("bases", $bases); $smarty->assign("base_select", $this->search_base); $smarty->assign("months", $months);