mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	Update Jellyfin.Server/Middleware/BaseUrlRedirectionMiddleware.cs
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									a7585dd2d6
								
							
						
					
					
						commit
						bdbac12d4f
					
				@ -59,7 +59,7 @@ namespace Jellyfin.Server.Middleware
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (!startsWithBaseUrl
 | 
					                if (!startsWithBaseUrl
 | 
				
			||||||
                    || localPath.Equals(baseUrlPrefix, StringComparison.OrdinalIgnoreCase)
 | 
					                    || localPath.Length == baseUrlPrefix.Length
 | 
				
			||||||
                    // Local path is /baseUrl/
 | 
					                    // Local path is /baseUrl/
 | 
				
			||||||
                    || (localPath.Length == baseUrlPrefix.Length + 1 && localPath[^1] == '/'))
 | 
					                    || (localPath.Length == baseUrlPrefix.Length + 1 && localPath[^1] == '/'))
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user