summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-02-19 13:51:18 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-02-19 13:51:18 +0000
commit6f312b54db9179f93a09195aad2baf8964bf7c56 (patch)
tree0cd9f09995056090bae71a64cff1191d340870a8 /services
parenta77ff1772a2fa515a4ca8ffe8937a8a91d68b98d (diff)
downloadsemanticscuttle-6f312b54db9179f93a09195aad2baf8964bf7c56.tar.gz
semanticscuttle-6f312b54db9179f93a09195aad2baf8964bf7c56.tar.bz2
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
Diffstat (limited to 'services')
-rw-r--r--services/tagservice.php4
1 files changed, 4 insertions, 0 deletions
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]));