tick_quote: properly quote the string '\''
authorZygo Blaxell <zblaxell@waya.furryterror.org>
Sat, 9 Jan 2010 01:58:48 +0000 (20:58 -0500)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Sat, 9 Jan 2010 02:17:28 +0000 (21:17 -0500)
faster-dupemerge

index 18d88cd00385815cd376e9da0c53436a0d2072f3..0ae1032f2192b4fe4d7556f8b5be4ffd9ce671a8 100755 (executable)
@@ -220,7 +220,7 @@ END {
 
 sub tick_quote {
        my ($text) = (@_);
 
 sub tick_quote {
        my ($text) = (@_);
-       $text =~ s/'/'\''/go;
+       $text =~ s/'/'\\''/go;
        return "'$text'";
 }
 
        return "'$text'";
 }