From d7e5050eff46e3f229f6f0409cf14e7af87e9f45 Mon Sep 17 00:00:00 2001 From: cweiske Date: Mon, 8 Feb 2010 18:59:05 +0000 Subject: Fix bug #2899515: Bookmarklet broken when site title contains quote git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@645 b3834d28-1941-0410-a4f8-b48e95affb8f --- data/templates/editbookmark.tpl.php | 17 +++++++++++------ doc/ChangeLog | 1 + 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/data/templates/editbookmark.tpl.php b/data/templates/editbookmark.tpl.php index 8a08717..c58bd1b 100644 --- a/data/templates/editbookmark.tpl.php +++ b/data/templates/editbookmark.tpl.php @@ -17,6 +17,11 @@ switch ($row['bStatus']) { } $this->includeTemplate("dojo.inc"); + +function jsEscTitle($title) +{ + return addcslashes($title, "'"); +} ?> @@ -137,11 +142,11 @@ if (empty($_REQUEST['popup']) && (!isset($showdelete) || !$showdelete)) { var browser=navigator.appName; if (browser == "Opera") { - document.write(":