From 265635cb674d23161b51ff9a146853277fdded56 Mon Sep 17 00:00:00 2001 From: "terry%netscape.com" <> Date: Sat, 19 Sep 1998 13:20:13 +0000 Subject: Whoops. Ignore anything that tries to override the version number in the params file. --- globals.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/globals.pl b/globals.pl index 67e810d4d..56916f980 100644 --- a/globals.pl +++ b/globals.pl @@ -461,7 +461,13 @@ sub Param { } # Um, maybe we haven't sourced in the params at all yet. if (stat("data/params")) { + # Write down and restore the version # here. That way, we get around + # anyone who maliciously tries to tweak the version number by editing + # the params file. Not to mention that in 2.0, there was a bug that + # wrote the version number out to the params file... + my $v = $::param{'version'}; require "data/params"; + $::param{'version'} = $v; } if (defined $::param{$value}) { return $::param{$value}; -- cgit v1.2.1