mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 17:23:00 +00:00
Fix insivible warning when uploading avatar
This commit is contained in:
parent
9abda2f323
commit
3fe64ef3c6
3 changed files with 3 additions and 3 deletions
|
@ -4025,7 +4025,7 @@ register_module([
|
|||
exit(page_renderer::render("Upload Error - $settings->sitename", "<p>The file you uploaded was valid, but $settings->sitename couldn't verify that it was tampered with during the upload process. This probably means that either is a configuration error, or that $settings->sitename has been attacked. Please contact " . $settings->admindetails_name . ", your $settings->sitename Administrator.</p>"));
|
||||
}
|
||||
|
||||
$description = $_POST["description"];
|
||||
$description = $_POST["description"] ?? "_(No description provided)_\n";
|
||||
|
||||
// Escape the raw html in the provided description if the setting is enabled
|
||||
if($settings->clean_raw_html)
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds the ability to upload files to Pepperminty Wiki. Uploaded files act as pages and have the special 'File\/' prefix.",
|
||||
"id": "feature-upload",
|
||||
"lastupdate": 1497709995,
|
||||
"lastupdate": 1497791495,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -209,7 +209,7 @@ register_module([
|
|||
exit(page_renderer::render("Upload Error - $settings->sitename", "<p>The file you uploaded was valid, but $settings->sitename couldn't verify that it was tampered with during the upload process. This probably means that either is a configuration error, or that $settings->sitename has been attacked. Please contact " . $settings->admindetails_name . ", your $settings->sitename Administrator.</p>"));
|
||||
}
|
||||
|
||||
$description = $_POST["description"];
|
||||
$description = $_POST["description"] ?? "_(No description provided)_\n";
|
||||
|
||||
// Escape the raw html in the provided description if the setting is enabled
|
||||
if($settings->clean_raw_html)
|
||||
|
|
Loading…
Reference in a new issue