From da8d32ae38acdab576a30ca56b30579f427c780d Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Tue, 18 Oct 2011 23:27:53 +0200 Subject: Tweak bookmarklet to not change the current page. Correct encoding when add bookmark --- apps/bookmarks/addBm.php | 4 ++-- apps/bookmarks/templates/settings.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/bookmarks/addBm.php b/apps/bookmarks/addBm.php index a7cdcee8faa..62ad5821dbf 100644 --- a/apps/bookmarks/addBm.php +++ b/apps/bookmarks/addBm.php @@ -39,7 +39,7 @@ $tmpl = new OC_Template( 'bookmarks', 'addBm', 'user' ); $url = isset($_GET['url']) ? urldecode($_GET['url']) : ''; $metadata = getURLMetadata($url); -$tmpl->assign('URL', htmlentities($metadata['url'])); -$tmpl->assign('TITLE', htmlentities($metadata['title'])); +$tmpl->assign('URL', htmlentities($metadata['url'],ENT_COMPAT,'utf-8')); +$tmpl->assign('TITLE', htmlentities($metadata['title'],ENT_COMPAT,'utf-8')); $tmpl->printPage(); diff --git a/apps/bookmarks/templates/settings.php b/apps/bookmarks/templates/settings.php index b7da441c2f8..97b6b256c09 100644 --- a/apps/bookmarks/templates/settings.php +++ b/apps/bookmarks/templates/settings.php @@ -8,7 +8,7 @@ ?>
- t('Bookmarklet:');?> t('Add page to ownCloud'); ?> + t('Bookmarklet:');?> t('Add page to ownCloud'); ?>
t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage.'); ?>
-- cgit v1.2.3