From 4df0f31f45e22db83701a52dd2e5dc9ecc3ea67b Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 13 Feb 2005 16:45:40 +0000 Subject: [PATCH 1/1] Fix SQL escaping in wiki parser. --- parse/parse-wiki-songlist.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse/parse-wiki-songlist.pl b/parse/parse-wiki-songlist.pl index 49934c8..169dbd2 100644 --- a/parse/parse-wiki-songlist.pl +++ b/parse/parse-wiki-songlist.pl @@ -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); -- 2.39.5