summaryrefslogtreecommitdiff
path: root/index_edit.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-08-21 21:59:12 +0100
committerGreg Roach <fisharebest@gmail.com>2013-08-21 22:32:55 +0100
commit5fc5e7f0f9ffdb6e0f42a59323c2686770babb2d (patch)
tree39a03a2b43284fbe0173ac78602f3c01c8d71672 /index_edit.php
parentd84b90e3c03be4cecad688d90f9de663e2117389 (diff)
downloadwebtrees-5fc5e7f0f9ffdb6e0f42a59323c2686770babb2d.tar.gz
webtrees-5fc5e7f0f9ffdb6e0f42a59323c2686770babb2d.tar.bz2
webtrees-5fc5e7f0f9ffdb6e0f42a59323c2686770babb2d.zip
Use new escape functions
Diffstat (limited to 'index_edit.php')
-rw-r--r--index_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index_edit.php b/index_edit.php
index 98151f21f2..1350d60d68 100644
--- a/index_edit.php
+++ b/index_edit.php
@@ -240,7 +240,7 @@ $controller
// Load Block Description array for use by javascript
foreach ($all_blocks as $block_name=>$block) {
$controller->addInlineJavascript(
- 'block_descr["'.$block_name.'"] = "'.addslashes($block->getDescription()).'";'
+ 'block_descr["'.$block_name.'"] = "'.WT_Filter::escapeJs($block->getDescription()).'";'
);
}
$controller->addInlineJavascript(