fix cache regex

This commit is contained in:
Joe 2021-12-31 00:38:55 -06:00
parent e2970a4d91
commit 000dca9fc0
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class Cache
{ {
$matches = []; $matches = [];
$c = null; $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") { if ($matches[1] == "memcached") {
$c = new MemcachedCache($matches[2]); $c = new MemcachedCache($matches[2]);
} elseif ($matches[1] == "apc") { } elseif ($matches[1] == "apc") {