Tweak peppermint.json.compromised error message

This commit is contained in:
Starbeamrainbowlabs 2019-09-09 17:07:23 +01:00
parent 157c6dabdd
commit d73c8d2f1f
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
- When making remote requests, Pepperminty Wiki will now correctly set the user agent string
- The server's `expose_php` setting is respected - if it's disabled, then the PHP version will not be exposed.
- Pepperminty Wiki _shouldn't_ make remote requests without you asking it to - see above and the theme gallery
- Improved peppermint.json.compromised error message - if it's still unclear, please let me know
## v0.19.2-hotfix2

View File

@ -24,7 +24,7 @@ $settingsFilename = "peppermint.json";
if(file_exists("$settingsFilename.compromised")) {
http_response_code(500);
header("content-type: text/plain");
exit("Error: $settingsFilename.compromised exists on disk, so it's likely you need to block access to 'peppermint.json' from the internet. If you've done this already, please delete $settingsFilename.compromised and reload this page.");
exit("Error: $settingsFilename.compromised exists on disk, so it's likely you need to block access to 'peppermint.json' from the internet. If you've done this already, please delete $settingsFilename.compromised and reload this page.\n\nThis check was done as part of the first run wizard.");
}
$guiConfig = json_decode($guiConfig);