[pve-devel] [PATCH manager] fix #1910: urlencode usernames in UserEdit

Dominik Csapak d.csapak at proxmox.com
Wed Apr 17 14:31:22 CEST 2019


Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/UserEdit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/dc/UserEdit.js b/www/manager6/dc/UserEdit.js
index 8dd1ae53..1665f4b0 100644
--- a/www/manager6/dc/UserEdit.js
+++ b/www/manager6/dc/UserEdit.js
@@ -17,7 +17,7 @@ Ext.define('PVE.dc.UserEdit', {
             url = '/api2/extjs/access/users';
             method = 'POST';
         } else {
-            url = '/api2/extjs/access/users/' + me.userid;
+            url = '/api2/extjs/access/users/' + encodeURIComponent(me.userid);
             method = 'PUT';
 	}
 
-- 
2.11.0





More information about the pve-devel mailing list