aboutsummaryrefslogtreecommitdiffstats
path: root/mod/uexport.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-02 20:42:09 -0700
committerFriendika <info@friendika.com>2011-06-02 20:42:09 -0700
commit20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4 (patch)
treee9fa5c2a02f7860916931dc723af4dba76852c8c /mod/uexport.php
parent1eb177235bafe63bd021e86a963b5d78f9bd0cd1 (diff)
downloadvolse-hubzilla-20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4.tar.gz
volse-hubzilla-20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4.tar.bz2
volse-hubzilla-20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4.zip
got it wrong - apparently no need to fix json slashes
Diffstat (limited to 'mod/uexport.php')
-rw-r--r--mod/uexport.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/uexport.php b/mod/uexport.php
index 96f062c41..e1fb22855 100644
--- a/mod/uexport.php
+++ b/mod/uexport.php
@@ -39,7 +39,7 @@ function uexport_init(&$a) {
$output = array('user' => $user, 'contact' => $contact, 'profile' => $profile );
header("Content-type: application/json");
- echo str_replace('\\/','/',json_encode($output));
+ echo json_encode($output);
$r = q("SELECT count(*) as `total` FROM `item` WHERE `uid` = %d ",
intval(local_user())
@@ -63,7 +63,7 @@ function uexport_init(&$a) {
}
$output = array('item' => $item);
- echo str_replace('\\/','/',json_encode($output));
+ echo json_encode($output);
}