From 5edc6f5a7b1ffdbb0efa46f177a3d8904a291de2 Mon Sep 17 00:00:00 2001 From: Master Yoda Date: Sun, 18 Nov 2018 09:32:26 -0800 Subject: [PATCH] Revert to buggy oldInput --- system/Common.php | 10 +++++----- system/HTTP/IncomingRequest.php | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/system/Common.php b/system/Common.php index 1814c882d4dd..1be3550d6742 100644 --- a/system/Common.php +++ b/system/Common.php @@ -783,13 +783,13 @@ function old(string $key, $default = null, $escape = 'html') } // If the result was serialized array or string, then unserialize it for use... - if (is_string($value)) - { - if (strpos($value, 'a:') === 0 || strpos($value, 's:') === 0) + // if (is_string($value)) + // { + if (strpos($value, 'a:') === 0 || strpos($value, 's:') === 0) { - $value = unserialize($value); - } + $value = unserialize($value); } + // } return $escape === false ? $value : esc($value, $escape); } diff --git a/system/HTTP/IncomingRequest.php b/system/HTTP/IncomingRequest.php index 393bbe1ac483..e66cfa207f09 100755 --- a/system/HTTP/IncomingRequest.php +++ b/system/HTTP/IncomingRequest.php @@ -522,8 +522,8 @@ public function getOldInput(string $key) } } - // return null if requested session key not found - return null; + // // return null if requested session key not found + // return null; } /**