refs #624. Changed endpoint AutoExec

pull/10/head
Manuel Aranda Rosales 2024-08-26 14:14:55 +02:00
parent ee779798bf
commit 59ce22e6f1
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class OgAdmClientController extends AbstractController
$fileAutoExec = '/tmp/Sautoexec-' . $data['iph'];
try {
$fileExe = fopen($fileAutoExec, 'w');
fwrite($fileExe, json_encode(['param' => '@'.join(["nfn=popup\rtitle=my title\rmessage=my message"])]));
fwrite($fileExe, json_encode(['param' => ["nfn=popup\rtitle=my title\rmessage=my message"]]));
fclose($fileExe);
} catch (\Exception $e) {
return new JsonResponse([], Response::HTTP_INTERNAL_SERVER_ERROR);