From 992e4fbc65594a22774777c44c3a674d003de6ed Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 10 Nov 2018 12:13:03 +0100 Subject: [PATCH] Fix regex --- ext/fileinfo/libmagic/softmagic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fileinfo/libmagic/softmagic.c b/ext/fileinfo/libmagic/softmagic.c index e9d45ff2b9..d37ce0d255 100644 --- a/ext/fileinfo/libmagic/softmagic.c +++ b/ext/fileinfo/libmagic/softmagic.c @@ -431,7 +431,7 @@ check_fmt(struct magic_set *ms, const char *fmt) return 0; (void)setlocale(LC_CTYPE, "C"); - pattern = zend_string_init("~%[-0-9.]*s~", sizeof("~%[-0-9.]*s~") - 1, 0); + pattern = zend_string_init("~%[-0-9\\.]*s~", sizeof("~%[-0-9\\.]*s~") - 1, 0); if ((pce = pcre_get_compiled_regex(pattern, &capture_count, &re_options)) == NULL) { rv = -1; } else { -- 2.40.0