Sanitised ip_geoloc_pretty_print(). 7.x-1.0-beta2
authorRik de Boer
Sat, 10 Sep 2011 02:48:02 +0000 (12:48 +1000)
committerRik de Boer
Sat, 10 Sep 2011 02:48:02 +0000 (12:48 +1000)
ip_geoloc.module

index 6f29989..2a23146 100644 (file)
@@ -400,7 +400,7 @@ function ip_geoloc_pretty_print($location) {
   $t = '';
   foreach ($location as $label => $value) {
     if (!empty($value)) {
-      $t .= "$label:&nbsp;<strong>$value</strong>&nbsp; ";
+      $t .= check_plain($label) . ":&nbsp;<strong>" . check_plain($value) . "</strong>&nbsp; ";
     }
   }
   return empty($t) ? t('nothing') : $t;