Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert to buggy oldInput #1502

Merged
merged 1 commit into from
Nov 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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