Skip to content

Commit

Permalink
Merge pull request #1502 from jim-parry/testing11/http
Browse files Browse the repository at this point in the history
Revert to buggy oldInput
  • Loading branch information
jim-parry authored Nov 18, 2018
2 parents 6b7fa8a + 5edc6f5 commit a9ebcd8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions system/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions system/HTTP/IncomingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit a9ebcd8

Please sign in to comment.