]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Mapstraction/actions/map.php
XSS vulnerability when remote-subscribing
[quix0rs-gnu-social.git] / plugins / Mapstraction / actions / map.php
index be59f5ba0b5ecb63f755dbeb8ac853a9e4a3649f..48861af9942605295b9b81bf775ed9c7032420c3 100644 (file)
@@ -120,9 +120,11 @@ class MapAction extends Action
         $jsonArray = array();
 
         while ($this->notice->fetch()) {
-            if (!empty($this->notice->lat) && !empty($this->notice->lon)) {
-                $jsonNotice = $this->noticeAsJson($this->notice);
-                $jsonArray[] = $jsonNotice;
+            try {
+                $notloc = Notice_location::locFromStored($this->notice);
+                $jsonArray[] = $this->noticeAsJson($this->notice);
+            } catch (ServerException $e) {
+                // no location data
             }
         }