backward compatible with old ports layout
This commit is contained in:
parent
dc83c91ea5
commit
e46c9290bb
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=8575
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue