Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
email_tfa
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
email_tfa
Commits
c3f79c85
Commit
c3f79c85
authored
2 years ago
by
Ahmed Samir
Committed by
abdulaziz zaid
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3286731
by Ahmed_Samir: HTML emails are not rendered properly
parent
c0df8ab6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
email_tfa.module
+1
-1
1 addition, 1 deletion
email_tfa.module
replace-xssfilter-with-xssfilteradmin-to-allow-HTML-emails-to-be-rendered-properly-3286731-2.patch
+0
-13
0 additions, 13 deletions
...allow-HTML-emails-to-be-rendered-properly-3286731-2.patch
with
1 addition
and
14 deletions
email_tfa.module
+
1
−
1
View file @
c3f79c85
...
...
@@ -76,7 +76,7 @@ function _email_tfa_mail_text($type, $tfa, $language) {
$text
=
Xss
::
filter
(
$config
->
get
(
'subject'
));
}
elseif
(
$type
==
'body'
)
{
$text
=
Xss
::
filter
(
$config
->
get
(
'body'
));
$text
=
Xss
::
filter
Admin
(
$config
->
get
(
'body'
));
}
return
Drupal
::
token
()
->
replace
(
$text
,
$tfa
,
[
...
...
This diff is collapsed.
Click to expand it.
replace-xssfilter-with-xssfilteradmin-to-allow-HTML-emails-to-be-rendered-properly-3286731-2.patch
deleted
100644 → 0
+
0
−
13
View file @
c0df8ab6
diff --git a/email_tfa.module b/email_tfa.module
index 8f4bed5..cf1b50f 100644
--- a/email_tfa.module
+++ b/email_tfa.module
@@ -76,7 +76,7 @@
function _email_tfa_mail_text($type, $tfa, $language) {
$text = Xss::filter($config->get('subject'));
}
elseif ($type == 'body') {
- $text = Xss::filter($config->get('body'));
+ $text = Xss::filterAdmin($config->get('body'));
}
return Drupal::token()->replace($text, $tfa, [
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment