git: 4358ffc3e8 - main - ports.cgi: fix warnings

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=4358ffc3e8b7bd92f909c92a340e99614c451b97

commit 4358ffc3e8b7bd92f909c92a340e99614c451b97
Author:     Wolfram Schneider <[email protected]>
AuthorDate: 2026-01-19 17:27:49 +0000
Commit:     Wolfram Schneider <[email protected]>
CommitDate: 2026-01-19 17:27:49 +0000

    ports.cgi: fix warnings
---
 website/content/en/cgi/ports.cgi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index 4260a89b37..919f5830e7 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -485,9 +485,8 @@ sub check_input {
             )
           )
         {
-            &warn(
-"unknown search type ``$stype'', use `all', `text', `name', 'requires', or `maintainer'\n"
-            );
+            print "unknown search type, use `all', `text', `name', 'requires', or `maintainer'\n";
+            warn "unknown search type ``", escapeHTML($stype), "'', use `all', `text', `name', 'requires', or `maintainer'\n" if $debug >= 1;
             &exit(0);
         }
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.