From 57d009f22d5c508975cda00f96fd4309031c8db7 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Thu, 27 Jun 2013 23:10:53 +0200 Subject: [PATCH] Correct Title in bookmarklet --- templates/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/list.php b/templates/list.php index c8f4e9f5..cbfd79b6 100644 --- a/templates/list.php +++ b/templates/list.php @@ -8,7 +8,7 @@ */ function bookmarklet(){ $l = new OC_l10n('bookmarks'); - $blet = "javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=document.title,d=a.open('"; + $blet = "javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=c(document.title),d=a.open('"; $blet .= OCP\Util::linkToAbsolute('bookmarks', 'addBm.php'); $blet .= "?output=popup&url='+c(b.location)+'&title='+e,'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=400px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300);})();"; $help_msg = $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage quickly:');