From 3c48e3d1b30b3d88fbbaf2d619092bcf9161fd04 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 13 Feb 2020 14:46:35 +0100 Subject: lib/mysql-functions: mysql_retrieve_static_information(): properly escape "." in regex --- lib/mysql-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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' } | \ -- cgit v1.2.3-70-g09d2