From 20d1de4ceda3390f65adb9b9915dc9f36eeb3ed4 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 2 Jun 2011 20:42:09 -0700 Subject: got it wrong - apparently no need to fix json slashes --- mod/uexport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/uexport.php') 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); } -- cgit v1.2.3