mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
debug: hide more secret stuff
This commit is contained in:
parent
67fdba2baf
commit
fae6e3ecae
2 changed files with 3 additions and 2 deletions
|
@ -40,6 +40,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
- Limited sidebar size to 20% of the screen width at most
|
||||
- Fix the [large blank space problem](https://github.com/sbrl/Pepperminty-Wiki/blob/master/Changelog.md#fixed-3) in all themes
|
||||
- Squashed the text `\A` appearing before tags at the bottom of pages for some users ([ref](https://gitter.im/Pepperminty-Wiki/Lobby?at=5f0632068342f4627401f145))
|
||||
- [security] Fix security issue in the debug action
|
||||
|
||||
|
||||
## v0.21
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
register_module([
|
||||
"name" => "Debug Information",
|
||||
"version" => "0.3",
|
||||
"version" => "0.4",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Adds a debug action for administrator use only that collects a load of useful information to make reporting bugs easier.",
|
||||
"id" => "page-debug-info",
|
||||
|
@ -59,7 +59,7 @@ register_module([
|
|||
$settings_export = explode("\n", var_export($settings, true));
|
||||
foreach ($settings_export as &$row)
|
||||
{
|
||||
if(preg_match("/(sitesecret|email)/i", $row)) $row = "********* secret *********";
|
||||
if(preg_match("/'(secret|sitesecret|email(?:Address)?|password)'/i", $row)) $row = "********* secret *********";
|
||||
}
|
||||
echo(implode("\n", $settings_export));
|
||||
echo("\n-----\n");
|
||||
|
|
Loading…
Reference in a new issue