From: Jouni Malinen Date: Mon, 10 Sep 2018 20:41:35 +0000 (+0300) Subject: HS 2.0 server: Replace deprecated PHP function split() X-Git-Tag: hostap_2_7~190 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad5c385db940b95627f4d4d681331665d18ef395;p=thirdparty%2Fhostap.git HS 2.0 server: Replace deprecated PHP function split() Use explode() instead of split() because split() has been removed from PHP 7.0.0 and there is no need for using full regular expression here. Signed-off-by: Jouni Malinen --- diff --git a/hs20/server/www/est.php b/hs20/server/www/est.php index a45648b96..6983ec9e2 100644 --- a/hs20/server/www/est.php +++ b/hs20/server/www/est.php @@ -2,7 +2,7 @@ require('config.php'); -$params = split("/", $_SERVER["PATH_INFO"], 3); +$params = explode("/", $_SERVER["PATH_INFO"], 3); $realm = $params[1]; $cmd = $params[2]; $method = $_SERVER["REQUEST_METHOD"];