mirror of
https://github.com/moodle/moodle.git
synced 2025-03-06 16:59:56 +01:00
The character used as a preg_* delimter is the tilde (~) char, but this was not passed into the `preg_quote()` when taking the user input ($CFG->wwwroot). As a result, any site which uses a userdir fails to parse the regexp.