opnsense-ports/www/drraw/files/patch-drraw.cgi
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
518 B
Perl

--- drraw.cgi.orig Mon Jul 24 13:30:01 2006
+++ drraw.cgi Mon Jul 24 13:31:42 2006
@@ -49,7 +49,7 @@
# The configuration file is expected to be found in the same directory
# as drraw itself. You may customize this to be elsewhere.
-my $config = (dirname($0) =~ /(.*)/)[0] . "/drraw.conf"; # Untaint
+my $config = '%%CONFDIR%%/drraw.conf'; # Untaint
###############################################################################
## STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP STOP ##