summaryrefslogtreecommitdiffstatshomepage
path: root/services/tagservice.php
diff options
context:
space:
mode:
authorGravatar mensonge2008-02-19 13:51:18 +0000
committerGravatar mensonge2008-02-19 13:51:18 +0000
commit6f312b54db9179f93a09195aad2baf8964bf7c56 (patch)
tree0cd9f09995056090bae71a64cff1191d340870a8 /services/tagservice.php
parenta77ff1772a2fa515a4ca8ffe8937a8a91d68b98d (diff)
downloadscuttle-6f312b54db9179f93a09195aad2baf8964bf7c56.tar.gz
scuttle-6f312b54db9179f93a09195aad2baf8964bf7c56.zip
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/tagservice.php')
-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]));