From: Marcel Werk Date: Fri, 27 Dec 2013 21:43:48 +0000 (+0100) Subject: Fixed array to string conversion error X-Git-Tag: 2.0.1~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6ed1d3dfa23b441ebc10429998f4087f2c050c50;p=GitHub%2FWoltLab%2FWCF.git Fixed array to string conversion error --- diff --git a/wcfsetup/install/files/lib/system/session/ACPSessionFactory.class.php b/wcfsetup/install/files/lib/system/session/ACPSessionFactory.class.php index c17e9dce64..74f24d4224 100644 --- a/wcfsetup/install/files/lib/system/session/ACPSessionFactory.class.php +++ b/wcfsetup/install/files/lib/system/session/ACPSessionFactory.class.php @@ -55,10 +55,14 @@ class ACPSessionFactory { */ protected function readSessionID() { if (isset($_GET['s'])) { - return $_GET['s']; + if (is_string($_GET['s'])) { + return $_GET['s']; + } } else if (isset($_POST['s'])) { - return $_POST['s']; + if (is_string($_POST['s'])) { + return $_POST['s']; + } } return '';