Skip to content

Commit 9540eda

Browse files
committed
Improve escaping.
1 parent 2f28bb9 commit 9540eda

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
7979
### 3.4.2
8080

8181
[2022.11.22; Maikuolan]: Maintenance release.
82+
83+
### v3.5.0
84+
85+
[2023.12.01; Maikuolan]: Improved escaping.

src/Web.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: Upload handler (last modified: 2023.09.26).
11+
* This file: Upload handler (last modified: 2023.12.01).
1212
*/
1313

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

0 commit comments

Comments
 (0)