Skip to content

Commit

Permalink
Trim, force to string.
Browse files Browse the repository at this point in the history
  • Loading branch information
kohler committed Nov 22, 2019
1 parent d575a8f commit 9c7d515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search.php
Expand Up @@ -18,7 +18,7 @@
if (isset($Qreq->t) && !isset($Qreq->q)) {
$Qreq->q = "";
}
$Qreq->t = PaperSearch::canonical_search_type($Qreq->t);
$Qreq->t = PaperSearch::canonical_search_type(trim((string) $Qreq->t));
$tOpt = PaperSearch::search_types($Me, $Qreq->t);
if (empty($tOpt)) {
$Conf->header("Search", "search");
Expand Down

0 comments on commit 9c7d515

Please sign in to comment.