knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject knox git commit: KNOX-820 Changed the originalUrl parsing so that multiple query params get included
Date Fri, 27 Jan 2017 17:59:28 GMT
Repository: knox
Updated Branches:
  refs/heads/master ebc2ac819 -> a7351ae7a


KNOX-820 Changed the originalUrl parsing so that multiple query params get included


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/a7351ae7
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/a7351ae7
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/a7351ae7

Branch: refs/heads/master
Commit: a7351ae7a7af0fabb621196b84bf512fba2c712e
Parents: ebc2ac8
Author: Sumit Gupta <sumit@apache.org>
Authored: Fri Jan 27 12:58:38 2017 -0500
Committer: Sumit Gupta <sumit@apache.org>
Committed: Fri Jan 27 12:58:38 2017 -0500

----------------------------------------------------------------------
 .../src/main/resources/applications/knoxauth/app/js/knoxauth.js   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/a7351ae7/gateway-applications/src/main/resources/applications/knoxauth/app/js/knoxauth.js
----------------------------------------------------------------------
diff --git a/gateway-applications/src/main/resources/applications/knoxauth/app/js/knoxauth.js
b/gateway-applications/src/main/resources/applications/knoxauth/app/js/knoxauth.js
index 6f91420..339005a 100644
--- a/gateway-applications/src/main/resources/applications/knoxauth/app/js/knoxauth.js
+++ b/gateway-applications/src/main/resources/applications/knoxauth/app/js/knoxauth.js
@@ -20,7 +20,8 @@ var userAgent = navigator.userAgent.toLowerCase();
 var firstLogIn = true;
 
 function get(name){
-   if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^&]*)')).exec(location.search))
+    //KNOX-820 changing the regex so that multiple query params get included with the 'originalUrl'
+   if(name=(new RegExp('[?&]'+encodeURIComponent(name)+'=([^]*)')).exec(location.search))
       return decodeURIComponent(name[1]);
 }
 


Mime
View raw message