mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Fix regex
This commit is contained in:
parent
60adea5496
commit
9d77bf0978
@ -421,7 +421,7 @@ check_fmt(struct magic_set *ms, struct magic *m)
|
||||
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, &re_extra, &re_options)) == NULL) {
|
||||
rv = -1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user