Fixed array to string conversion error
authorMarcel Werk <burntime@woltlab.com>
Fri, 27 Dec 2013 21:43:48 +0000 (22:43 +0100)
committerMarcel Werk <burntime@woltlab.com>
Fri, 27 Dec 2013 21:43:48 +0000 (22:43 +0100)
wcfsetup/install/files/lib/system/session/ACPSessionFactory.class.php

index c17e9dce64d44b03a5e214698131c093d2f93991..74f24d42247691a3c407eabf177add60d0c1d976 100644 (file)
@@ -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 '';