Skip to content

Commit

Permalink
fix still possible html injection
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
  • Loading branch information
d00p committed Nov 5, 2022
1 parent eaea932 commit 3f10a4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
7 changes: 1 addition & 6 deletions index.php
Expand Up @@ -353,12 +353,7 @@
$message = sprintf($lng['error']['login_blocked'], Settings::Get('login.deactivatetime'));
break;
case 4:
$cmail = isset($_GET['customermail']) ? $_GET['customermail'] : 'unknown';
if (!Validate::validateEmail($cmail)) {
$message = str_replace('%s', 'invalid.address', $lng['error']['errorsendingmail']);
} else {
$message = str_replace('%s', $cmail, $lng['error']['errorsendingmail']);
}
$message = $lng['error']['errorsendingmailpub'];
break;
case 5:
$message = $lng['error']['user_banned'];
Expand Down
1 change: 1 addition & 0 deletions lng/english.lng.php
Expand Up @@ -673,6 +673,7 @@
$lng['admin']['text'] = 'Message';
$lng['menu']['message'] = 'Messages';
$lng['error']['errorsendingmail'] = 'The message to "%s" failed';
$lng['error']['errorsendingmailpub'] = 'The message to the given email-address failed';
$lng['error']['cannotreaddir'] = 'Unable to read directory "%s"';
$lng['message']['success'] = 'Successfully sent message to %s recipients';
$lng['message']['norecipients'] = 'No e-mail has been sent because there are no recipients in the database';
Expand Down
1 change: 1 addition & 0 deletions lng/german.lng.php
Expand Up @@ -666,6 +666,7 @@
$lng['admin']['text'] = 'Nachricht';
$lng['menu']['message'] = 'Nachrichten';
$lng['error']['errorsendingmail'] = 'Das Versenden der Nachricht an "%s" schlug fehl.';
$lng['error']['errorsendingmailpub'] = 'Das Versenden der Nachricht an die angegebene E-Mail Adresse schlug fehl.';
$lng['error']['cannotreaddir'] = 'Der Ordner "%s" kann nicht gelesen werden';
$lng['message']['success'] = 'Nachricht erfolgreich an "%s" Empfänger gesendet';
$lng['message']['norecipients'] = 'Es wurde keine E-Mail versendet, da sich keine Empfänger in der Datenbank befinden';
Expand Down

0 comments on commit 3f10a4a

Please sign in to comment.