Skip to content

Commit

Permalink
Improve escaping.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed Dec 1, 2023
1 parent 2f28bb9 commit 9540eda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
### 3.4.2

[2022.11.22; Maikuolan]: Maintenance release.

### v3.5.0

[2023.12.01; Maikuolan]: Improved escaping.
4 changes: 2 additions & 2 deletions src/Web.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* License: GNU/GPLv2
* @see LICENSE.txt
*
* This file: Upload handler (last modified: 2023.09.26).
* This file: Upload handler (last modified: 2023.12.01).
*/

namespace phpMussel\Web;
Expand Down Expand Up @@ -403,7 +403,7 @@ public function scan()
/** Generate email body. */
$EmailBody = sprintf(
$this->Loader->L10N->getString('notifications_message'),
preg_replace(['~^([\da-z]+\:\d+\:)~i', '~\n~'], ['', "<br />\n"], strip_tags($this->Loader->HashReference)),
preg_replace(['~^([\da-z]+:\d+:)~i', '~\n~'], ['', "<br />\n"], strip_tags($this->Loader->HashReference)),
$TemplateData['detected'],
$this->Loader->timeFormat($this->Loader->Time, $this->Loader->Configuration['core']['time_format'])
);
Expand Down

0 comments on commit 9540eda

Please sign in to comment.