We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c2518f commit 992e4fbCopy full SHA for 992e4fb
ext/fileinfo/libmagic/softmagic.c
@@ -431,7 +431,7 @@ check_fmt(struct magic_set *ms, const char *fmt)
431
return 0;
432
433
(void)setlocale(LC_CTYPE, "C");
434
- 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);
435
if ((pce = pcre_get_compiled_regex(pattern, &capture_count, &re_options)) == NULL) {
436
rv = -1;
437
} else {
0 commit comments