mirror of
https://github.com/YunoHost-Apps/element_ynh.git
synced 2024-09-03 18:36:08 +02:00
Fix device name with php7
This commit is contained in:
parent
fbd58c4188
commit
35ef5129bd
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ $url = "$url/_matrix/client/r0/login?";
|
|||
|
||||
$remoteUser = $_SERVER['REMOTE_USER'];
|
||||
$userPassword = $_SERVER['PHP_AUTH_PW'];
|
||||
$deviceName = json_decode($HTTP_RAW_POST_DATA)->devicename;
|
||||
$deviceName = json_decode(file_get_contents('php://input'))->devicename;
|
||||
$deviceName = preg_filter("/^([\w\s_.\/\-\:\.]*)$/", "$1", $deviceName);
|
||||
|
||||
if ($deviceName == '') {
|
||||
|
|
Loading…
Add table
Reference in a new issue