Module: nagvis
Branch: nagvis-1.5
Commit: e5f8a2335fbec3112b92d7121a1de47723c6062d
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=e5f8a2335fbec3112b92d7121a1de47723c6062d

Author: Lars Michelsen <[email protected]>
Date:   Thu Nov 18 08:54:20 2010 +0100

 #393: $ signs are now escaped correctly in json ouput of nagvis core

---

 .../core/classes/objects/NagVisStatefulObject.php  |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/share/server/core/classes/objects/NagVisStatefulObject.php 
b/share/server/core/classes/objects/NagVisStatefulObject.php
index 76e70df..bb4bd29 100644
--- a/share/server/core/classes/objects/NagVisStatefulObject.php
+++ b/share/server/core/classes/objects/NagVisStatefulObject.php
@@ -715,7 +715,8 @@ class NagVisStatefulObject extends NagVisObject {
                return strtr($s, Array("\r" => '<br />',
                                       "\n" => '<br />',
                                       '"'  => '&quot;',
-                                      '\'' => '&#145;'));
+                                      '\'' => '&#145;',
+                                      '$'  => '&#36;'));
        }
 
        


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to