projects
/
project/ip_geoloc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
144fde4
)
Sanitised ip_geoloc_pretty_print().
7.x-1.0-beta2
author
Rik de Boer
Sat, 10 Sep 2011 02:48:02 +0000 (12:48 +1000)
committer
Rik de Boer
Sat, 10 Sep 2011 02:48:02 +0000 (12:48 +1000)
ip_geoloc.module
patch
|
blob
|
blame
|
history
diff --git
a/ip_geoloc.module
b/ip_geoloc.module
index
6f29989
..
2a23146
100644
(file)
--- a/
ip_geoloc.module
+++ b/
ip_geoloc.module
@@
-400,7
+400,7
@@
function ip_geoloc_pretty_print($location) {
$t = '';
foreach ($location as $label => $value) {
if (!empty($value)) {
- $t .= "$label: <strong>$value</strong> ";
+ $t .= check_plain($label) . ": <strong>" . check_plain($value) . "</strong> ";
}
}
return empty($t) ? t('nothing') : $t;