Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: escaping custom templates used with ckeditor #7152

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

stephenwaite
Copy link
Sponsor Member

Fixes #7151

Short description of what this resolves:

Changes proposed in this pull request:

@@ -168,7 +168,7 @@ function check_user_category(form, selectFrom, selectedList) {
}
jsub_sortNow(form.elements[selectFrom]);
if (msg != '') {
if (confirm("<?php echo addslashes(xl('The following categories will be removed from your category List'));?> \n" + msg + "\n <?php echo addslashes(xl('Do you want to continue?'));?>")) {
if (confirm("<?php echo xlt('The following categories will be removed from your category List');?> \n" + xlj(msg) + "\n <?php echo xlt('Do you want to continue?');?>")) {
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use xlj and note removal of quotes (also no need to escape msg)

 if (confirm(<?php echo xlj('The following categories will be removed from your category List');?> + "\n" + msg + "\n" + <?php echo xlj('Do you want to continue?');?>)) {

@bradymiller
Copy link
Sponsor Member

@stephenwaite , Just noted one minor issue. Otherwise looks great.

dance-bear

@stephenwaite stephenwaite merged commit d2c332c into openemr:master Jan 8, 2024
24 checks passed
@stephenwaite stephenwaite deleted the iss7151 branch January 8, 2024 15:11
sjpadgett added a commit to sjpadgett/openemr that referenced this pull request Jan 12, 2024
…le_manager

* 'master' of https://github.com/openemr/openemr:
  fix: escaping custom templates used with ckeditor (openemr#7152)
sjpadgett pushed a commit to sjpadgett/openemr that referenced this pull request Feb 21, 2024
* fix: escaping custom templates used with ckeditor

* xlj clean up

(cherry picked from commit d2c332c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: escaping custom templates used with ckeditor
2 participants