Skip to content
Permalink
Browse files

Trim, force to string.

  • Loading branch information
kohler committed Nov 22, 2019
1 parent d575a8f commit 9c7d5157247c64261318853a63670f1561c1c0f2
Showing with 1 addition and 1 deletion.
  1. +1 −1 search.php
@@ -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");

0 comments on commit 9c7d515

Please sign in to comment.
You can’t perform that action at this time.