From 2c76f1a2117f56a3f13452eaca05a5b4d5751a1b Mon Sep 17 00:00:00 2001
From: Falko Timme <ft@falkotimme.com>
Date: Tue, 22 Oct 2013 20:31:57 -0400
Subject: [PATCH] - Fixed FS#3118 - munin & monit logins not being urlencoded.

---
 interface/web/monitor/show_munin.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/interface/web/monitor/show_munin.php b/interface/web/monitor/show_munin.php
index b193d58..5db6adf 100644
--- a/interface/web/monitor/show_munin.php
+++ b/interface/web/monitor/show_munin.php
@@ -58,10 +58,10 @@
 		$munin_password = trim($server_config['munin_password']);
 		$auth_string = '';
 		if($munin_user != ''){
-			$auth_string = $munin_user;
+			$auth_string = rawurlencode($munin_user);
 		}
 		if($munin_user != '' && $munin_password != ''){
-			$auth_string .= ':'.$munin_password;
+			$auth_string .= ':'.rawurlencode($munin_password);
 		}
 		if($auth_string != '') $auth_string .= '@';
 	

--
Gitblit v1.9.1