aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-03-28 18:09:59 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2010-03-28 18:09:59 +0000
commitccbc63aec4869f64fb68706a6d687aa665a60c9c (patch)
tree0ba3e6f578cf2772b235fb20402a995722e4effe
parent74dc9ea6a4e553f38a97928617074fd76793c783 (diff)
downloadsemanticscuttle-ccbc63aec4869f64fb68706a6d687aa665a60c9c.tar.gz
semanticscuttle-ccbc63aec4869f64fb68706a6d687aa665a60c9c.tar.bz2
test that public bookmarks of other people are not exported via csv
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@703 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--tests/Api/ExportCsvTest.php5
-rw-r--r--www/api/export_csv.php15
2 files changed, 19 insertions, 1 deletions
diff --git a/tests/Api/ExportCsvTest.php b/tests/Api/ExportCsvTest.php
index 18008e1..2bff8a5 100644
--- a/tests/Api/ExportCsvTest.php
+++ b/tests/Api/ExportCsvTest.php
@@ -140,6 +140,11 @@ class Api_ExportCsvTest extends TestBaseApi
$this->addBookmark(
null, 'http://example.org/testBookmarks-private2', 2
);
+ //public bookmark from other people that should not be
+ // exported, too
+ $this->addBookmark(
+ null, 'http://example.org/testBookmarks-other', 0
+ );
$body = $req->send()->getBody();
$csv = $this->getCsvArray($body);
diff --git a/www/api/export_csv.php b/www/api/export_csv.php
index 43951ec..bb469b1 100644
--- a/www/api/export_csv.php
+++ b/www/api/export_csv.php
@@ -1,5 +1,18 @@
<?php
-// Export in CSV format in order to allow the import into a spreadsheet tool like Excel
+/**
+ * Export own bookmarks in CSV format in order to allow the import
+ * into a spreadsheet tool like Excel
+ *
+ * PHP version 5.
+ *
+ * @category Bookmarking
+ * @package SemanticScuttle
+ * @author Benjamin Huynh-Kim-Bang <mensonge@users.sourceforge.net>
+ * @author Christian Weiske <cweiske@cweiske.de>
+ * @author Eric Dane <ericdane@users.sourceforge.net>
+ * @license GPL http://www.gnu.org/licenses/gpl.html
+ * @link http://sourceforge.net/projects/semanticscuttle
+ */
// Force HTTP authentication first!
$httpContentType = 'application/csv-tab-delimited-table';