diff options
author | Erich Eckner <git@eckner.net> | 2020-02-13 14:46:35 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-13 14:46:35 +0100 |
commit | 3c48e3d1b30b3d88fbbaf2d619092bcf9161fd04 (patch) | |
tree | 11c4c8b6f698749d0f74f792e609f60ad61a624a /lib/mysql-functions | |
parent | 7cce6998e4466390baeff8e8f5568ebbd6b606d0 (diff) | |
download | builder-3c48e3d1b30b3d88fbbaf2d619092bcf9161fd04.tar.xz |
lib/mysql-functions: mysql_retrieve_static_information(): properly escape "." in regex
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-x | lib/mysql-functions | 6 |
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' } | \ |