Merge remote-tracking branch 'security/patch/3.1/ss-2016-004' into 3.1.19

This commit is contained in:
Daniel Hensby 2016-05-05 01:01:37 +01:00
commit e8cfe1cc72
No known key found for this signature in database
GPG Key ID: E38EC566FE29EB66

View File

@ -1472,6 +1472,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
* @param int $id * @param int $id
*/ */
public function setCurrentPageID($id) { public function setCurrentPageID($id) {
$id = (int)$id;
Session::set($this->sessionNamespace() . ".currentPage", $id); Session::set($this->sessionNamespace() . ".currentPage", $id);
} }