From 7e6de50232ed7ba74ff7ea33f5fd5c838921bb1f Mon Sep 17 00:00:00 2001 From: cweiske Date: Sun, 28 Mar 2010 18:10:57 +0000 Subject: fix multiple tags in html export git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@704 b3834d28-1941-0410-a4f8-b48e95affb8f --- www/api/export_html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/api/export_html.php') diff --git a/www/api/export_html.php b/www/api/export_html.php index 8d70927..731b7fb 100644 --- a/www/api/export_html.php +++ b/www/api/export_html.php @@ -27,7 +27,8 @@ $bookmarkservice = SemanticScuttle_Service_Factory::get('Bookmark'); // Check to see if a tag was specified. if (isset($_REQUEST['tag']) && (trim($_REQUEST['tag']) != '')) { - $tag = trim($_REQUEST['tag']); + //$_GET vars have + replaced to " " automatically + $tag = str_replace(' ', '+', trim($_REQUEST['tag'])); } else { $tag = null; } -- cgit v1.2.3 From ea0527fc83fbb04f89104836af8334e5476e04c4 Mon Sep 17 00:00:00 2001 From: cweiske Date: Sun, 28 Mar 2010 18:11:56 +0000 Subject: make export_html follow the "specs" a bit more and add format documentation url git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@705 b3834d28-1941-0410-a4f8-b48e95affb8f --- www/api/export_html.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'www/api/export_html.php') diff --git a/www/api/export_html.php b/www/api/export_html.php index 731b7fb..c7c8cf4 100644 --- a/www/api/export_html.php +++ b/www/api/export_html.php @@ -3,6 +3,9 @@ * Implements the del.icio.us API request for all a user's posts, * optionally filtered by tag. * + * Netscape bookmark file format is documented at + * http://msdn.microsoft.com/en-us/library/aa753582(VS.85).aspx + * * SemanticScuttle - your social bookmark manager. * * PHP version 5. @@ -46,7 +49,7 @@ echo ''; echo ''."\r\n"; echo 'Bookmarks'."\r\n"; echo '

Bookmarks for '. htmlspecialchars($currentUser->getUsername()) .''. (is_null($tag) ? '' : ' tag="'. htmlspecialchars($tag) .'"') ." from " . $sitename ."

\r\n"; -echo '

'."\r\n"; +echo '

'."\r\n"; @@ -68,9 +71,9 @@ foreach ($bookmarks['bookmarks'] as $row) { $taglist = 'system:unfiled'; } - echo "\t
" . filter($row['bTitle'], 'xml') ."\r\n"; + echo "\t
" . filter($row['bTitle'], 'xml') ."\r\n"; } -echo '

'; +echo '

'; ?> -- cgit v1.2.3