#540 GoogleMap: Extra addslashes()

Normal Version

The Googlemap for an individual wasn't displaying and I tracked the problem down to some double-quotes in a fact that weren't being correctly escaped. I fixed the problem by adding extra "addslashes()" calls in two places, both in the module file "googlemap.php" (svn 5318).

Line 737 was changed to:

echo ": ".addslashes($markers[$j]['info']);

That fixed my problem. I also changed line 791 to:

echo ": {".addslashes($markers[$j]['info'])."}";

As it is very similar.


  • Gerry Kroll

    Gerry Kroll - 2009-07-21

    Thank you. The correction has been applied to SVN 5958, but in a slightly different form.

  • Gerry Kroll

    Gerry Kroll - 2009-07-21
    • assigned_to: nobody --> canajun2eh
    • status: open --> pending-accepted
  • Andrew Gregory

    Andrew Gregory - 2009-07-22

    OK. Thanks!

  • Gerry Kroll

    Gerry Kroll - 2009-08-01

    This patch has been merged into the code and was included in the
    lastest final version release.

    Please download the newest release.


  • Gerry Kroll

    Gerry Kroll - 2009-08-01
    • status: pending-accepted --> closed-accepted

Log in to post a comment.