Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-13 14:46:35 +0100
committerErich Eckner <git@eckner.net>2020-02-13 14:46:35 +0100
commit3c48e3d1b30b3d88fbbaf2d619092bcf9161fd04 (patch)
tree11c4c8b6f698749d0f74f792e609f60ad61a624a
parent7cce6998e4466390baeff8e8f5568ebbd6b606d0 (diff)
lib/mysql-functions: mysql_retrieve_static_information(): properly escape "." in regex
-rwxr-xr-xlib/mysql-functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index cd35df4..27f327b 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -1492,7 +1492,11 @@ mysql_retrieve_static_information() {
printf ' FROM `compressions`;\n'
printf 'SELECT CONCAT('
printf '"package_compression_suffix_regex=\\"",'
- printf 'GROUP_CONCAT(`compressions`.`suffix` SEPARATOR "\\\\|"),'
+ printf 'GROUP_CONCAT('
+ printf 'REPLACE('
+ printf '`compressions`.`suffix`,'
+ printf '".","\\\\."'
+ printf ') SEPARATOR "\\\\|"),'
printf '"\\""'
printf ') FROM `compressions`;\n'
} | \