diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/v1/ac.php | 12 | ||||
-rw-r--r-- | api/v1/images.php | 2 | ||||
-rw-r--r-- | api/v1/music.php | 2 | ||||
-rw-r--r-- | api/v1/news.php | 2 | ||||
-rw-r--r-- | api/v1/videos.php | 2 | ||||
-rw-r--r-- | api/v1/web.php | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/api/v1/ac.php b/api/v1/ac.php index 9d9f534..236dc7b 100644 --- a/api/v1/ac.php +++ b/api/v1/ac.php @@ -100,7 +100,7 @@ class autocomplete{ $_GET["s"], $json ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); break; @@ -135,7 +135,7 @@ class autocomplete{ $_GET["s"], $json ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); break; @@ -154,7 +154,7 @@ class autocomplete{ $_GET["s"], $json ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); break; @@ -167,7 +167,7 @@ class autocomplete{ $_GET["s"], $json[1] // ensure it contains valid key 0 ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); break; } @@ -221,7 +221,7 @@ class autocomplete{ echo json_encode( ["error" => $error], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); die(); } @@ -233,7 +233,7 @@ class autocomplete{ $_GET["s"], [] ], - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); die(); } diff --git a/api/v1/images.php b/api/v1/images.php index 348dda7..de2c5a9 100644 --- a/api/v1/images.php +++ b/api/v1/images.php @@ -30,7 +30,7 @@ $get = $frontend->parsegetfilters($_GET, $filters); try{ echo json_encode( $scraper->image($get), - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); }catch(Exception $e){ diff --git a/api/v1/music.php b/api/v1/music.php index a1359eb..58985e3 100644 --- a/api/v1/music.php +++ b/api/v1/music.php @@ -30,7 +30,7 @@ $get = $frontend->parsegetfilters($_GET, $filters); try{ echo json_encode( $scraper->music($get), - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); }catch(Exception $e){ diff --git a/api/v1/news.php b/api/v1/news.php index ca11b13..ab38781 100644 --- a/api/v1/news.php +++ b/api/v1/news.php @@ -30,7 +30,7 @@ $get = $frontend->parsegetfilters($_GET, $filters); try{ echo json_encode( $scraper->news($get), - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); }catch(Exception $e){ diff --git a/api/v1/videos.php b/api/v1/videos.php index c0a7507..1d23780 100644 --- a/api/v1/videos.php +++ b/api/v1/videos.php @@ -30,7 +30,7 @@ $get = $frontend->parsegetfilters($_GET, $filters); try{ echo json_encode( $scraper->video($get), - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); }catch(Exception $e){ diff --git a/api/v1/web.php b/api/v1/web.php index df5cec1..6a9c030 100644 --- a/api/v1/web.php +++ b/api/v1/web.php @@ -43,7 +43,7 @@ try{ echo json_encode( $scraper->web($get), - JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES + JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_INVALID_UTF8_IGNORE ); }catch(Exception $e){ |