Skip to content

Commit a74e977

Browse files
committed
fix: don't escape forward slashes anywhere in API
1 parent 24de4d0 commit a74e977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ function globalsearch(string $query, string $root_folder, string $engine): array
516516
// start search from current folder
517517
$search_results = globalsearch($search, $local_path, $engine);
518518
header("Content-Type: application/json");
519-
die(json_encode($search_results));
519+
die(json_encode($search_results, JSON_UNESCAPED_SLASHES));
520520
}
521521
$[end]$
522522

@@ -1070,7 +1070,7 @@ function downloadBatch(array $urls) {
10701070
"preview" => $preview,
10711071
];
10721072
header("Content-Type: application/json");
1073-
die(json_encode($payload));
1073+
die(json_encode($payload, JSON_UNESCAPED_SLASHES));
10741074
}
10751075

10761076
// Raw streaming for popup media previews without increasing download counter.

0 commit comments

Comments
 (0)