mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge remote-tracking branch 'security/patch/3.1/ss-2016-004' into 3.1.19
This commit is contained in:
commit
e8cfe1cc72
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user