From: Friendika Date: Thu, 12 May 2011 09:15:04 +0000 (-0700) Subject: fix json_encode on url's X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=df7a4206b70522bdf3a116433c5e0edac1f43c59;p=friendica.git fix json_encode on url's --- diff --git a/mod/friendika.php b/mod/friendika.php index 0347a07a81..c7d8b5b810 100644 --- a/mod/friendika.php +++ b/mod/friendika.php @@ -1,6 +1,6 @@ argv[1]=="json"){ $register_policy = Array('REGISTER_CLOSED', 'REGISTER_APPROVE', 'REGISTER_OPEN'); @@ -14,8 +14,6 @@ function friendika_content(&$a) { $admin = false; } - - $data = Array( 'version' => FRIENDIKA_VERSION, 'url' => $a->get_baseurl(), @@ -26,9 +24,14 @@ function friendika_content(&$a) { ); - echo json_encode($data); + echo str_replace('\\/','/',json_encode($data)); killme(); } +} + + + +function friendika_content(&$a) { $o = ''; $o .= '

Friendika

';