mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 17:29:18 -04:00
Add BUILD_NUMBER to the security check in .htaccess
Change BUILD_NUMBER to be .ini format and add a big "do not edit" comment.
This commit is contained in:
@@ -205,7 +205,7 @@ class gallery_Core {
|
||||
* Return the contents of the BUILD_NUMBER file, which should be a single integer.
|
||||
*/
|
||||
static function build_number() {
|
||||
$lines = file(DOCROOT . "BUILD_NUMBER", FILE_IGNORE_NEW_LINES);
|
||||
return $lines[0];
|
||||
$result = parse_ini_file(DOCROOT . "BUILD_NUMBER");
|
||||
return $result["build_number"];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user