mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-26 13:49:35 -05:00
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 <jouni@codeaurora.org>
This commit is contained in:
parent
02eec9954c
commit
ad5c385db9
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
require('config.php');
|
require('config.php');
|
||||||
|
|
||||||
$params = split("/", $_SERVER["PATH_INFO"], 3);
|
$params = explode("/", $_SERVER["PATH_INFO"], 3);
|
||||||
$realm = $params[1];
|
$realm = $params[1];
|
||||||
$cmd = $params[2];
|
$cmd = $params[2];
|
||||||
$method = $_SERVER["REQUEST_METHOD"];
|
$method = $_SERVER["REQUEST_METHOD"];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user