Fix SQL escaping in wiki parser.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sun, 13 Feb 2005 16:45:40 +0000 (16:45 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sun, 13 Feb 2005 16:45:40 +0000 (16:45 +0000)
parse/parse-wiki-songlist.pl

index 49934c8..169dbd2 100644 (file)
@@ -27,8 +27,8 @@ while (<>) {
        $artist =~ s/\[\[//g;
 
        # minimal SQL escaping
-       $songname =~ s/'/\'/g;
-       $artist =~ s/'/\'/g;
+       $songname =~ s/'/\\'/g;
+       $artist =~ s/'/\\'/g;
 
        $maxbpm = $minbpm if (!defined($maxbpm));
        ($maxbpm,$minbpm) = ($minbpm,$maxbpm) if ($maxbpm < $minbpm);