From 5d46a13b4311c14f3ad5ba508575617d88cc6a5b Mon Sep 17 00:00:00 2001 From: Jorgen Evens Date: Mon, 6 Feb 2017 23:40:57 +0100 Subject: [PATCH] [apcu] Properly sanitize value of apc key when shown. --- cache.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cache.php b/cache.php index 7a93019..4c97a89 100644 --- a/cache.php +++ b/cache.php @@ -2,7 +2,7 @@ if (!extension_loaded('apcu')) { function apcu_cache_info($limited = false) { return apc_cache_info('user', $limited); } function apcu_sma_info($limited = false) { return apc_sma_info($limited); } - function apcu_fetch($key, &$success) { return apc_fetch($key, $success); } + function apcu_fetch($key, &$success = null) { return apc_fetch($key, $success); } function apcu_delete($key) { return apc_delete($key); } class ApcuIterator extends ApcIterator {} } @@ -301,7 +301,7 @@ function sort_list(&$list) {

Value for

-
+
@@ -311,7 +311,7 @@ function sort_list(&$list) { Key - Hits + Hits Size TTL Expires @@ -327,7 +327,7 @@ function sort_list(&$list) { if( !preg_match(get_selector(), get_key($item, 'key', 'info')) || $expired ) continue;?> - +