mirror of
				https://github.com/gitbucket/gitbucket.git
				synced 2025-10-31 18:46:28 +01:00 
			
		
		
		
	Disabling directory listing feature on Jetty
This commit is contained in:
		| @@ -96,6 +96,9 @@ public class JettyLauncher { | ||||
|         } | ||||
|         context.setTempDirectory(tmpDir); | ||||
|  | ||||
|         // Disabling the directory listing feature. | ||||
|         context.setInitParameter("org.eclipse.jetty.servlet.Default.dirAllowed", "false"); | ||||
|  | ||||
|         ProtectionDomain domain = JettyLauncher.class.getProtectionDomain(); | ||||
|         URL location = domain.getCodeSource().getLocation(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user