mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-10-31 02:25:59 +01:00 
			
		
		
		
	(refs #1379)Prepend "/" if specified prefix does not start with it
This commit is contained in:
		| @@ -24,6 +24,9 @@ public class JettyLauncher { | ||||
|                         port = Integer.parseInt(dim[1]); | ||||
|                     } else if(dim[0].equals("--prefix")) { | ||||
|                         contextPath = dim[1]; | ||||
|                         if(!contextPath.startsWith("/")){ | ||||
|                             contextPath = "/" + contextPath; | ||||
|                         } | ||||
|                     } else if(dim[0].equals("--gitbucket.home")){ | ||||
|                         System.setProperty("gitbucket.home", dim[1]); | ||||
|                     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user