fix issue 848 + code comments

This commit is contained in:
RedSwede 2015-01-29 16:06:39 +01:00
parent 775dc3a320
commit bee939d79a

View File

@ -12,11 +12,9 @@ function tagger_content(&$a) {
} }
$observer_hash = get_observer_hash(); $observer_hash = get_observer_hash();
//strip html-tags
$term = notags(trim($_GET['term'])); $term = notags(trim($_GET['term']));
// no commas allowed //check if empty
$term = str_replace(array(',',' '),array('','_'),$term);
if(! $term) if(! $term)
return; return;