Permalink
Browse files

Adding addslashes alert strings

  • Loading branch information...
julmis
julmis committed May 3, 2005
1 parent 792947b commit 0d0cfc3bc9311fd63cfa14e54162e3a18c1ceae5
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/editor/htmlarea.php
View
@@ -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

0 comments on commit 0d0cfc3

Please sign in to comment.