Broken search on webserver

Marco Atzeri marco.atzeri@gmail.com
Wed Jul 15 20:13:50 GMT 2020


Problem: I want to search for
    libssh/libssh.h

Using https://cygwin.com/packages/

If I put the name and press Go the URL is changed in
https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh%2Flibssh.h&arch=x86_64
                                                         ^^^

and the output is
    Found 0 matches for libsshx2Flibssh.h
                              ^^^


Instead if I modify directly the URL in:
https://cygwin.com/cgi-bin2/package-grep.cgi?grep=libssh/libssh.h&arch=x86_64

Found 3 matches for libssh/libssh.h
....


I guess that the current incapability is due to spurious urlencode in
cgi-bin2/package-grep.cgi
that is modifing the $param_grep

echo '<li><a href="package-cat.cgi?file='`urlencode 
$partfile`'&grep='`urlencode $param_grep`'">'$file'</a> - '$desc'</li>'


Could someone double check my guess ?

Regards
Marco


More information about the Cygwin mailing list