Bug #80550 [Com]: bug search: Nonsensical "the following words were ignored:" w/ trailing space
| From: | dharman@php.net | Date: | Thu, 24 Dec 2020 21:29:37 +0000 |
| Subject: | Bug #80550 [Com]: bug search: Nonsensical "the following words were ignored:" w/ trailing space | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-29029@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80550&edit=1
ID: 80550
Comment by: dharman@php.net
Reported by: php4fan at gmail dot com
Summary: bug search: Nonsensical "the following words were
ignored:" w/ trailing space
Status: Open
Type: Bug
Package: Website problem
Operating System: irrelevant
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Thanks for the report. You can submit a PR to add trim() function on the line https://github.com/php/web-bugs/blob/53b60e33bb2d5f9f92f664f029a97d400a359c6a/include/query.php#L30
Previous Comments:
------------------------------------------------------------------------
[2020-12-24 21:16:27] php4fan at gmail dot com
Description:
------------
Steps to reproduce:
1. go to https://bugs.php.net/search.php
2. In the first input field ("with all or any of the words") type:
"type array null "
with one or more spaces at the end. These are just example words, it's not relevant what
words you type, but it's important that you add one or more spaces at the end
Expected result:
----------------
Should find the same results as if typing the same key words without any trailing spaces.
Leading and trailing spaces and additional spaces between words should be irrelevant.
No warning should be shown. The fact that you added an unnecessary space at the end of the query is
not something you need to be warned about.
Actual result:
--------------
This stupid nonsensical message appears at the top of the results page:
-----
WARNING:
The following words were ignored:
-----
with no words after the colon.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80550&edit=1