aboutsummaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorWolfram Schneider <wosch@FreeBSD.org>2026-03-31 19:32:49 +0000
committerWolfram Schneider <wosch@FreeBSD.org>2026-03-31 19:32:49 +0000
commit5d176928a765e58f3a2d7de605ebaaaaa751445f (patch)
tree677a0f54192d07db7ea764560bcb0a67a5c67e35 /website
parentb4d6eb01540fe9317da88fbf0156b17e972e8324 (diff)
Diffstat (limited to 'website')
-rwxr-xr-xwebsite/content/en/cgi/ports.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index c036f4665a..d4f1c6bbc0 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -878,14 +878,14 @@ $counter = 0;
$query =~ s/^\^// if $stype eq 'requires';
# quote non characters
+my $query2 = $query;
$query =~ s/([^\w\^])/\\$1/g;
# search
if ($query) {
my $q = "";
- if ( $query =~ m,^([A-Za-z0-9\-]+)(\\/)([A-Za-z0-9\-_\+\.\\]+)$, ) {
- $q = "$1$2$3";
- $q =~ s,\\,,g;
+ if ( $query2 =~ m,^([A-Za-z0-9\-]+)/([A-Za-z0-9\-_\+\.\\]+)$, ) {
+ $q = "$1/$2";
}
if ( $q ne "" && $enable_packages_link && $stype eq 'pkg' ) {