Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have seen that the Tooltip text in views is not encoded in the HTML format in latest .dev and latest live version.
After hours of searching I found the same situation in Drupal 6 Gmap; https://www.drupal.org/node/704574#comment-2575712
You need to add;
if (!empty($marker->title)) {
$marker->title = check_plain($marker->title);
}
After;
$tooltip = '';
if ($this->options['tooltipenabled'] && !empty($this->rendered_fields[$row_index][$this->options['tooltipfield']])) {
$tooltip = $this->rendered_fields[$row_index][$this->options['tooltipfield']];
// https://www.drupal.org/node/704574
if (!empty($marker->title)) { <====== Added
$marker->title = check_plain($marker->title); <====== Added
} <====== Added
}
Please add this to next .dev version.
Greetings, Martijn
Comment | File | Size | Author |
---|---|---|---|
#6 | gmap_2615890_5.patch | 822 bytes | PhilY |
#4 | gmap_2615890_4.patch | 895 bytes | PhilY |
Comments
Comment #2
Stephen OllmanWhat file in D7 does this fix go into?
Comment #3
Summit CreditAttribution: Summit as a volunteer commentedHi,
Don't know anymore. I do not use Gmap anymore. Sorry.
greetings, Martijn
Comment #4
PhilYCouldn't find a proper way to do it but by following Stephen Ollman trick on https://www.drupal.org/project/gmaps/issues/704574#comment-12447438
Patch is attached.
Comment #6
PhilYComment #7
Stephen Ollman+1 #6