1
0
Fork 0
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:
Josué Tille 2018-11-07 18:01:13 +01:00
parent fbd58c4188
commit 35ef5129bd

View file

@ -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 == '') {