diff options
author | Friendika <info@friendika.com> | 2011-06-02 20:42:09 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-02 20:42:09 -0700 |
commit | 20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4 (patch) | |
tree | e9fa5c2a02f7860916931dc723af4dba76852c8c /mod/uexport.php | |
parent | 1eb177235bafe63bd021e86a963b5d78f9bd0cd1 (diff) | |
download | volse-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.php | 4 |
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); } |