From 6f312b54db9179f93a09195aad2baf8964bf7c56 Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 19 Feb 2008 13:51:18 +0000 Subject: Bug fixes: prevent from adding special characters into tags git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@44 b3834d28-1941-0410-a4f8-b48e95affb8f --- services/tagservice.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services') diff --git a/services/tagservice.php b/services/tagservice.php index bbf3574..256afc5 100644 --- a/services/tagservice.php +++ b/services/tagservice.php @@ -41,6 +41,10 @@ class TagService { } } + //clean tags from strange characters + $tags = str_replace(array('"', '\''), "_", $tags); + + $tags_count = count($tags); for ($i = 0; $i < $tags_count; $i++) { $tags[$i] = trim(strtolower($tags[$i])); -- cgit v1.2.3-54-g00ecf