Tagger v2 - 20071031 1430

- SQL escape broke matching. Fixed.

git-svn-id: file:///home/shish/svn/shimmie2/trunk@605 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
Artanis 2007-10-31 21:48:10 +00:00
parent cf00965f26
commit 90c70bf7b3

View File

@ -76,8 +76,8 @@ class TaggerXML extends Extension {
$values = array();
// Match
$p = strlen($s) == 1? " ":"_";
$sq = "%".mysql_real_escape_string($p.$s)."%";
$p = strlen($s) == 1? " ":"\_";
$sq = "%".$p.mysql_real_escape_string($s)."%";
$match = "concat(?,tag) LIKE ?";
array_push($values,$p,$sq);
// Exclude