]> git.mxchange.org Git - friendica.git/commitdiff
got it wrong - apparently no need to fix json slashes
authorFriendika <info@friendika.com>
Fri, 3 Jun 2011 03:42:09 +0000 (20:42 -0700)
committerFriendika <info@friendika.com>
Fri, 3 Jun 2011 03:42:09 +0000 (20:42 -0700)
mod/friendika.php
mod/match.php
mod/qsearch.php
mod/uexport.php

index 8bd6e3437772656234274e9c0f0645caade580ae..7762bfbb52ef7f1d3d57b286327b115057d349e2 100644 (file)
@@ -24,7 +24,7 @@ function friendika_init(&$a) {
                        
                );
 
-               echo str_replace('\\/','/',json_encode($data));
+               echo json_encode($data);
                killme();
        }
 }
index 2742b4a887844fd14ba6c4eb3774cf1d18b82721..12138a26c71dbcfaffbbd2a332406340bcda1d26 100644 (file)
@@ -38,6 +38,7 @@ function match_content(&$a) {
 
                if(count($j->results)) {
                        foreach($j->results as $jj) {
+
                                $o .= '<div class="profile-match-wrapper"><div class="profile-match-photo">';
                                $o .= '<a href="' . $jj->url . '">' . '<img src="' . $jj->photo . '" alt="' . $jj->name . '" title="' . $jj->name . '[' . $jj->url . ']' . '" /></a></div>';
                                $o .= '<div class="profile-match-break"></div>';
index 9b3f2b087a0da6582cb22b1f61ffe8253a60c1ab..c35e253b670508c23771013c04187ca482f36a44 100644 (file)
@@ -44,7 +44,7 @@ function qsearch_init(&$a) {
                        $results[] = array( (int) $rr['id'], 0, $rr['name'],$rr['url'],$rr['photo']);
        }
 
-       echo str_replace('\\/','/',json_encode((object) $results));
+       echo json_encode((object) $results);
        killme();
 }
 
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);
        }