]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0 server: Replace deprecated PHP function split()
authorJouni Malinen <jouni@codeaurora.org>
Mon, 10 Sep 2018 20:41:35 +0000 (23:41 +0300)
committerJouni Malinen <jouni@codeaurora.org>
Mon, 10 Sep 2018 20:41:35 +0000 (23:41 +0300)
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 <jouni@codeaurora.org>
hs20/server/www/est.php

index a45648b96c42386756f1a252913caa8c142a37ce..6983ec9e2c235f84c1cfe9a0e21ff948325d42b5 100644 (file)
@@ -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"];