Commit 265635cb authored by terry%netscape.com's avatar terry%netscape.com

Whoops. Ignore anything that tries to override the version number in

the params file.
parent 9de262ff
...@@ -461,7 +461,13 @@ sub Param { ...@@ -461,7 +461,13 @@ sub Param {
} }
# Um, maybe we haven't sourced in the params at all yet. # Um, maybe we haven't sourced in the params at all yet.
if (stat("data/params")) { 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"; require "data/params";
$::param{'version'} = $v;
} }
if (defined $::param{$value}) { if (defined $::param{$value}) {
return $::param{$value}; return $::param{$value};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment