Welcome, Guest
Please Login or Register.    Lost Password?

Locations name does not properly encoded
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 1
TOPIC: Locations name does not properly encoded
#875
Locations name does not properly encoded 4 Months, 3 Weeks ago  
For locations with double quotes f.e. in name its caused to fault.

Fix is trivial:
Code:

$ svn diff
Index: utils.php
===================================================================
--- utils.php   (revision 69)
+++ utils.php   (working copy)
@@ -845,7 +845,7 @@
                                echo "hsIcon.image = '". $hs_icon2 . "';\n";
                                }
 
-                               echo "markerOptions = {title:\"" . $row->name . "\", icon:hsIcon };\n\n";
+                               echo "markerOptions = {title:\"" . addslashes($row->name) . "\", icon:hsIcon };\n\n";
 
 
                                if (HotspotsHelper::getSettings(map_overlay_div, 1) == 0) {

Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Hubbitus
Fresh Boarder
Posts: 9
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1
Moderators: yves-hoppe, extrem-pc

Newsletter

Name:
Email:

Donate to lunajoom Team