php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81480 [bugs.php.net] search: replace the package_nname select with a single checkbox
Submitted: 2021-09-26 12:17 UTC Modified: -
From: ddpm at liscovius dot de Assigned:
Status: Open Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2021-09-26 12:17 UTC] ddpm at liscovius dot de
Description:
------------
Currently, there are 2 selects package_name[] and package_nname[].

These select are having too many options. Selecting all packages in both of them results in a 24KB GET request which the web server denies.

Also it makes IMHO no sense to have both as there is no logical reason to have 2 selects as they are AND in the SQL.

Instead as little mitigation use a simple NO checkbox there.

The SQL uses then 

NOT IN(packagelist) instead of

IN(packagelist)

in the WHERE conditions.

Beside simpler form, the requests are now max half the size, around 12KB.
Also too big to be handled by web server, but a step forward.



Actual result:
--------------
Search form is more complex than necessary.



Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 06 11:01:27 2024 UTC