[icinga-checkins] icinga.org: icingaweb2/master: JS: Encode URLs shown in responsive debug element

git at icinga.org git at icinga.org
Fri Feb 19 15:23:06 CET 2016


Module: icingaweb2
Branch: master
Commit: dc6ea11415f7035b94e83c29fdc1a56271f81ee1
URL:    https://git.icinga.org/?p=icingaweb2.git;a=commit;h=dc6ea11415f7035b94e83c29fdc1a56271f81ee1

Author: Alexander A. Klimov <alexander.klimov at netways.de>
Date:   Fri Feb 19 14:27:14 2016 +0100

JS: Encode URLs shown in responsive debug element

---

 public/js/icinga/ui.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js
index 4e9ac0f..a20cd9b 100644
--- a/public/js/icinga/ui.js
+++ b/public/js/icinga/ui.js
@@ -362,7 +362,7 @@
                 if (loading === '') {
                     loading = '<br />Loading:<br />';
                 }
-                loading += el + ' => ' + req.url;
+                loading += el + ' => ' + encodeURI(req.url);
             });
 
             $('#responsive-debug').html(



More information about the icinga-checkins mailing list