summaryrefslogtreecommitdiff
path: root/games/nonsense
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2000-12-22 18:16:39 +0000
committerPeter Pentchev <roam@FreeBSD.org>2000-12-22 18:16:39 +0000
commit451e5066ee8793d5a3c95075eb8241aff0261d4b (patch)
treec236aa5302bd93045fbb831d8e7131b562bee16b /games/nonsense
parentUpdate to version 0.28. (diff)
Update to 0.5.
Notes
Notes: svn path=/head/; revision=36241
Diffstat (limited to 'games/nonsense')
-rw-r--r--games/nonsense/Makefile2
-rw-r--r--games/nonsense/distinfo2
-rw-r--r--games/nonsense/files/patch-aa16
3 files changed, 7 insertions, 13 deletions
diff --git a/games/nonsense/Makefile b/games/nonsense/Makefile
index 6a107e0527d1..cec33a7fcfb0 100644
--- a/games/nonsense/Makefile
+++ b/games/nonsense/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= nonsense
-PORTVERSION= 0.4
+PORTVERSION= 0.5
CATEGORIES= games
MASTER_SITES= http://i-want-a-website.com/about-linux/
diff --git a/games/nonsense/distinfo b/games/nonsense/distinfo
index 4572d3f504a6..94aaa9f0d818 100644
--- a/games/nonsense/distinfo
+++ b/games/nonsense/distinfo
@@ -1 +1 @@
-MD5 (nonsense-0.4.tar.gz) = 4913fd46d6b93a62eb26cf96586721b8
+MD5 (nonsense-0.5.tar.gz) = 5749a6e4623e64b9929822e07c2a5512
diff --git a/games/nonsense/files/patch-aa b/games/nonsense/files/patch-aa
index 6b5d2d5eba7d..b676817893e1 100644
--- a/games/nonsense/files/patch-aa
+++ b/games/nonsense/files/patch-aa
@@ -1,5 +1,5 @@
---- nonsense 2000/12/15 13:26:57 1.1.1.3
-+++ nonsense 2000/12/15 13:54:30 1.6
+--- nonsense 2000/12/22 17:29:22 1.1.1.4
++++ nonsense 2000/12/22 17:31:00 1.7
@@ -40,6 +40,10 @@
use POSIX qw( strftime ); # Just in case somebody needs the date
use CGI;
@@ -11,7 +11,7 @@
my %pool; # Where the datafiles are slurped into
my %static; # Hash of persistent data (to maintain state)
-@@ -328,7 +332,8 @@
+@@ -332,7 +336,8 @@
sub LoadDataFile {
my $file = shift;
$file = SafeFile( $file ) if $cgi_mode;
@@ -21,7 +21,7 @@
local $/ = '';
SECTION: while( <IN> ) {
-@@ -344,7 +349,8 @@
+@@ -348,7 +353,8 @@
my $file = shift;
my $m = '';
$file = SafeFile( $file ) if $cgi_mode;
@@ -31,13 +31,7 @@
local $/; undef $/; my $t = <IN>;
close IN;
if( $t =~ /__BEGIN__/ ) { # Check for a header
-@@ -356,15 +362,29 @@
- ### Remove special characters from a filename to prevent maliciousness
- sub SafeFile {
- my( $file ) = shift;
-- $file =~ s/([|<>])//g;
-+ $file =~ s/([|<>\0]|\.\.\/)//g;
- warn("[" . localtime() . "] [warning] [client $ENV{REMOTE_ADDR}] Attempt to override filename safety feature!") if $1;
+@@ -365,10 +371,24 @@
return $file;
}