Edit report at https://bugs.php.net/bug.php?id=80550&edit=1

 ID:                 80550
 Patch added by:     reind...@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:

The following pull request has been associated:

Patch Name: Added trim() due to Bug #80550
On GitHub:  https://github.com/php/web-bugs/pull/88
Patch:      https://github.com/php/web-bugs/pull/88.patch


Previous Comments:
------------------------------------------------------------------------
[2020-12-24 21:29:37] dhar...@php.net

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

------------------------------------------------------------------------
[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

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to