diff options
author | terry%netscape.com <> | 1998-09-19 15:20:13 +0200 |
---|---|---|
committer | terry%netscape.com <> | 1998-09-19 15:20:13 +0200 |
commit | 265635cb674d23161b51ff9a146853277fdded56 (patch) | |
tree | e60bc2e5248313784158f7001fe72577e566c977 | |
parent | 9de262ff67dfcf37d051bb71a8660d895b10704c (diff) | |
download | bugzilla-265635cb674d23161b51ff9a146853277fdded56.tar.gz bugzilla-265635cb674d23161b51ff9a146853277fdded56.tar.xz |
Whoops. Ignore anything that tries to override the version number in
the params file.
-rw-r--r-- | globals.pl | 6 |
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}; |