mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Better replace \r\n\t only after <eor> and before the next tag
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user