aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorterry%netscape.com <>1998-09-19 13:20:13 +0000
committerterry%netscape.com <>1998-09-19 13:20:13 +0000
commit265635cb674d23161b51ff9a146853277fdded56 (patch)
treee60bc2e5248313784158f7001fe72577e566c977
parent9de262ff67dfcf37d051bb71a8660d895b10704c (diff)
downloadbugs-265635cb674d23161b51ff9a146853277fdded56.tar
bugs-265635cb674d23161b51ff9a146853277fdded56.tar.gz
bugs-265635cb674d23161b51ff9a146853277fdded56.tar.bz2
bugs-265635cb674d23161b51ff9a146853277fdded56.tar.xz
bugs-265635cb674d23161b51ff9a146853277fdded56.zip
Whoops. Ignore anything that tries to override the version number in
the params file.
-rw-r--r--globals.pl6
1 files changed, 6 insertions, 0 deletions
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};