aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-27 12:17:33 -0400
committerB. Watson <yalhcru@gmail.com>2022-03-27 12:17:33 -0400
commitbda2441bed5f31f32b3a2abde659d15562bea0bf (patch)
tree2338a3f7fb090eb5be02c7c9722748ca5f21fa53
parent4dba4347f3710b152c8778ff8926faffd1e0a41b (diff)
downloadlimnoria.slackfacts.plugins-bda2441bed5f31f32b3a2abde659d15562bea0bf.tar.gz
whatis2sqlite.pl: escape double-quotesHEADmaster
-rwxr-xr-xbin/whatis2sqlite.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/whatis2sqlite.pl b/bin/whatis2sqlite.pl
index b557754..b91f98d 100755
--- a/bin/whatis2sqlite.pl
+++ b/bin/whatis2sqlite.pl
@@ -76,9 +76,8 @@ sub make_sql {
return if $seen{"$page^^$sect"}++;
- # N.B. we don't escape quotes here because 14.2's whatis
- # doesn't contain any double-quotes. When 15 is released,
- # better check again!
+ # 15.0 has double-quotes in some descriptions.
+ $desc =~ s/"/""/g;
print <<EOF
insert into whatis values (null, "$page", "$sect", "$desc");
EOF