Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding addslashes alert strings

  • Loading branch information...
commit 0d0cfc3bc9311fd63cfa14e54162e3a18c1ceae5 1 parent 792947b
julmis authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/editor/htmlarea.php
View
8 lib/editor/htmlarea.php
@@ -1712,8 +1712,12 @@ function (str, l1, l2, l3) {
var editor = this;
var selectedtxt = "";
- var strReplaced = '<?php print_string('itemsreplaced','editor'); ?>';
- var strNotfound = '<?php print_string('searchnotfound','editor');?>';
+ <?php
+ $strreplaced = addslashes(get_string('itemsreplaced','editor'));
+ $strnotfound = addslashes(get_string('searchnotfound','editor'));
+ ?>
+ var strReplaced = '<?php echo $strreplaced ?>';
+ var strNotfound = '<?php echo $strnotfound ?>';
var ile;
//in source mode mozilla show errors, try diffrent method
Please sign in to comment.
Something went wrong with that request. Please try again.