Fix cache regex #4

Merged
butterbutt merged 1 commits from joe/cache-regex-fix into master 2022-03-15 07:37:03 -05:00
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class Cache
{
$matches = [];
$c = null;
if ($dsn && preg_match("#(.*)://(.*)#", $dsn, $matches) && !isset($_GET['DISABLE_CACHE'])) {
if ($dsn && preg_match('<(.*):\/\/(.*)>', $dsn, $matches) && !isset($_GET['DISABLE_CACHE'])) {
if ($matches[1] == "memcached") {
$c = new MemcachedCache($matches[2]);
} elseif ($matches[1] == "apc") {