Module: nagvis Branch: nagvis-1.4 Commit: f3aa2f0de060330bfe37ce4c0ff20a72f33b17ce URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=f3aa2f0de060330bfe37ce4c0ff20a72f33b17ce
Author: Lars Michelsen <[email protected]> Date: Mon Aug 31 10:08:24 2009 +0200 #87 Plus signs are not escaped on ajax requests --- nagvis/nagvis/includes/js/nagvis.js | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/nagvis/nagvis/includes/js/nagvis.js b/nagvis/nagvis/includes/js/nagvis.js index 8bee33e..bb7869c 100644 --- a/nagvis/nagvis/includes/js/nagvis.js +++ b/nagvis/nagvis/includes/js/nagvis.js @@ -582,6 +582,10 @@ function scrollSlow(iTargetX, iTargetY, iSpeed) { * @author Lars Michelsen <[email protected]> */ function escapeUrlValues(sStr) { + if(sStr.search('+') !== -1) { + sStr = sStr.replace(/+/g, '%2B'); + } + if(sStr.search('&') !== -1) { sStr = sStr.replace(/&/g, '%26'); } ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
