|
@@ -988,7 +988,7 @@ function WelcomeLogin()
|
|
// Do a quick version spot check.
|
|
// Do a quick version spot check.
|
|
$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
|
|
$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
|
|
preg_match('~\*\s@version\s+(.+)[\s]{2}~i', $temp, $match);
|
|
preg_match('~\*\s@version\s+(.+)[\s]{2}~i', $temp, $match);
|
|
- if (empty($match[1]) || $match[1] != SMF_VERSION)
|
|
|
|
|
|
+ if (empty($match[1]) || (trim($match[1]) != SMF_VERSION))
|
|
return throw_error('The upgrader found some old or outdated files.<br /><br />Please make certain you uploaded the new versions of all the files included in the package.');
|
|
return throw_error('The upgrader found some old or outdated files.<br /><br />Please make certain you uploaded the new versions of all the files included in the package.');
|
|
|
|
|
|
// What absolutely needs to be writable?
|
|
// What absolutely needs to be writable?
|
|
@@ -3117,7 +3117,7 @@ Usage: /path/to/php -f ' . basename(__FILE__) . ' -- [OPTION]...
|
|
// Do a quick version spot check.
|
|
// Do a quick version spot check.
|
|
$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
|
|
$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
|
|
preg_match('~\*\s@version\s+(.+)[\s]{2}~i', $temp, $match);
|
|
preg_match('~\*\s@version\s+(.+)[\s]{2}~i', $temp, $match);
|
|
- if (empty($match[1]) || $match[1] != SMF_VERSION)
|
|
|
|
|
|
+ if (empty($match[1]) || (trim($match[1]) != SMF_VERSION))
|
|
print_error('Error: Some files have not yet been updated properly.');
|
|
print_error('Error: Some files have not yet been updated properly.');
|
|
|
|
|
|
// Make sure Settings.php is writable.
|
|
// Make sure Settings.php is writable.
|