backward compatible with old ports layout

This commit is contained in:
Wolfram Schneider 2000-12-29 10:49:45 +00:00
parent dc83c91ea5
commit e46c9290bb
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=8575

View file

@ -26,7 +26,7 @@
#
# url.cgi - make plain text URLs clickable
#
# $FreeBSD: www/en/cgi/url.cgi,v 1.26 2000/01/08 10:37:37 wosch Exp $
# $FreeBSD: www/en/cgi/url.cgi,v 1.27 2000/10/09 12:27:01 phantom Exp $
use strict;
@ -51,6 +51,9 @@ if ($file !~ m%^(http|ftp)://[a-z_\-0-9]+\.freebsd\.(com|org)%i &&
exit(0);
}
# backward compatible with old ports layout
$file =~ s%/pkg/DESCR$%/pkg-descr%;
# catch '..', multiple times
# ports/japanese/ppxp/../../net/ppxp/pkg-descr
# -> ports/net/ppxp/pkg-descr