The base URL can contain a tilde which conflicts with the queryless_urls regex, causing preg_replace_callback to return null. Using bracket delimiters would be better.
Switched from bracket delimiters to exceping the tilde in preg_quote
Wrong delimiter in preg_quote in News.controller

Signed-off-by: emanuele <emanuele45@gmail.com>
Some wrong delimiters in preg_quote in Subs.php

Signed-off-by: emanuele <emanuele45@gmail.com>
Missing delimiter in preg_quote, even though being a function name it shouldn't matter

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #1877 from emanuele45/preg_quotes

Preg quotes