Commit: 2e6915b67db5fbb3179b54abb6dae1474b6b0b88 Author: Kevin Reinders <30635447+greeenpepp...@users.noreply.github.com> Mon, 28 Dec 2020 14:15:43 +0100 Committer: Christoph M. Becker <cmbecke...@gmx.de> Mon, 28 Dec 2020 14:33:04 +0100 Parents: 11c6f02ed162ee72e999ee06c8c539f15f7b711f Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=2e6915b67db5fbb3179b54abb6dae1474b6b0b88 Log: Fix #80550: bug search: Nonsensical "the following words were ignored:" w/ trailing space We `trim()` that input. Closes GH-88. Bugs: https://bugs.php.net/80550 Changed paths: M include/query.php Diff: diff --git a/include/query.php b/include/query.php index 2c56dc3..8318747 100644 --- a/include/query.php +++ b/include/query.php @@ -28,7 +28,7 @@ $pseudo_pkgs = $packageRepository->findAll(); // Setup input variables.. $boolean_search = isset($_GET['boolean']) ? (int) $_GET['boolean'] : 0; $status = !empty($_GET['status']) ? (string)$_GET['status'] : 'Open'; -$search_for = !empty($_GET['search_for']) ? (string)$_GET['search_for'] : ''; +$search_for = !empty($_GET['search_for']) ? trim((string)$_GET['search_for']) : ''; $bug_type = (!empty($_GET['bug_type']) && $_GET['bug_type'] != 'All') ? (string)$_GET['bug_type'] : ''; $bug_age = (int) (isset($_GET['bug_age']) ? $_GET['bug_age'] : 0); $bug_updated = (int) (isset($_GET['bug_updated']) ? $_GET['bug_updated'] : 0); -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php