Closed vasishth80987 closed 4 years ago
The -\s has to be -\s as
???
Aplogies for the typo,
It should be _\-\s, the hyphen has to escaped.
Resolved it, by changing it in the config variable 'allowed_folderNames_chars' and 'allowed_fileNames_chars'.
Hello all, still having regex issues for file creation, for now, I've changed to empty strings in LMM config.. Not sure how to fix this, will have a look when I get the opportunity
Cheers
6.x
Yes
exception: "ErrorException" file: "/vendor/ctf0/media-manager/src/App/Controllers/Modules/Utils.php" line: 50 message: "preg_replace(): Compilation failed: invalid range in character class at offset 27"
This is an issue specific to PHP 7.3 and newer. PHP PCRE engine has migrated to PCRE2. So the regex pattern used for compilation needs to be compatible with the new regex syntax. In my case the pattern generated was
(script.*?\/script)|[^(-\s)a-zA-Z0-9]+_
The -\s has to be -\s as per the new syntax(please cross check this
https://wiki.php.net/rfc/pcre2-migration#backward_incompatible_changes
)