]> git.mxchange.org Git - friendica.git/blobdiff - mod/ping.php
more work on new contact edit page - plus first port to testbubble
[friendica.git] / mod / ping.php
index 239dd93e7807ede1565a8831166e43ab162252e6..caa78f9b7cf2f800ae8fb82ff38aa1d43621e3fd 100644 (file)
@@ -118,7 +118,7 @@ function ping_init(&$a) {
                function xmlize($href, $name, $url, $photo, $date, $message){
                        $notsxml = '<note href="%s" name="%s" url="%s" photo="%s" date="%s">%s</note>';
                        return sprintf ( $notsxml,
-                                       $href, $name, $url, $photo, $date, $message
+                                       xmlify($href), xmlify($name), xmlify($url), xmlify($photo), xmlify($date), xmlify($message)
                                );
                }
                
@@ -165,7 +165,7 @@ function ping_init(&$a) {
                }
                if (count($friends)){
                        foreach ($friends as $i) {
-                               echo xmlize( $a->get_baseurl().'/display/'.$a->user['nickname']."/".$i['parent'], $i['author-name'], $i['author-link'], $i['author-avatar'], relative_date($i['created']), sprintf( t("{0} is now friends with %s"), $i['fname'] ) );
+                               echo xmlize($a->get_baseurl().'/display/'.$a->user['nickname']."/".$i['parent'],$i['author-name'],$i['author-link'], $i['author-avatar'], relative_date($i['created']), sprintf( t("{0} is now friends with %s"), $i['fname'] ) );
                        };
                }
                if (count($posts)){
@@ -180,16 +180,14 @@ function ping_init(&$a) {
 
                if(x($_SESSION,'sysmsg')){
                        foreach ($_SESSION['sysmsg'] as $m){
-                               echo "<notice>".($m)."</notice>";
+                               echo "<notice>".xmlify($m)."</notice>";
                        }
-                       //$_SESSION['sysmsg']=array();
                        unset($_SESSION['sysmsg']);
                }
                if(x($_SESSION,'sysmsg_info')){
                        foreach ($_SESSION['sysmsg_info'] as $m){
-                               echo "<info>".($m)."</info>";
+                               echo "<info>".xmlify($m)."</info>";
                        }
-                       //$_SESSION['sysmsg_info']=array();
                        unset($_SESSION['sysmsg_info']);
                }