Better replace \r\n\t only after <eor> and before the next tag

This commit is contained in:
phl0
2025-02-08 21:16:33 +01:00
parent 45ab0b551b
commit 7788fa2b45

View File

@@ -166,7 +166,7 @@ class API extends CI_Controller {
// Decode JSON and store
$raw = file_get_contents("php://input");
$raw = $raw = preg_replace('#[\r\n\t]+#', '', $raw);
$raw = $raw = preg_replace('#<([eE][oO][rR])>[\r\n\t]+#', '<$1>', $raw);
$obj = json_decode($raw,true);
$raw='';
if ($obj === NULL) {