fix default mime

This commit is contained in:
ghost 2023-05-11 01:45:36 +03:00
parent acafdfcf3a
commit b83ad6cc3a
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ if (API_ENABLED) {
// Filter request data
$type = !empty($_GET['type']) ? Filter::url($_GET['type']) : 'html';
$type = !empty($_GET['type']) ? Filter::url($_GET['type']) : 'text';
$mode = !empty($_GET['mode']) ? Filter::url($_GET['mode']) : 'default';
$query = !empty($_GET['query']) ? Filter::url($_GET['query']) : '';
$page = !empty($_GET['page']) ? (int) $_GET['page'] : 1;

View File

@ -16,7 +16,7 @@ $sphinx = new SphinxQL(SPHINX_HOST, SPHINX_PORT);
$db = new MySQL(DB_HOST, DB_PORT, DB_NAME, DB_USERNAME, DB_PASSWORD);
// Filter request data
$t = !empty($_GET['t']) ? Filter::url($_GET['t']) : 'html';
$t = !empty($_GET['t']) ? Filter::url($_GET['t']) : 'text';
$m = !empty($_GET['m']) ? Filter::url($_GET['m']) : 'default';
$q = !empty($_GET['q']) ? Filter::url($_GET['q']) : '';
$p = !empty($_GET['p']) ? (int) $_GET['p'] : 1;