]> git.mxchange.org Git - friendica.git/blobdiff - mod/uexport.php
Merge pull request #317 from CatoTH/master
[friendica.git] / mod / uexport.php
index 96f062c41cb03d36e0d415e3ac16f58bf1e3f1a2..e1fb22855a6066fa8b99336b837f29ef9ebbb0ea 100644 (file)
@@ -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);
        }