mirror of
				https://gitea.invidious.io/iv-org/invidious
				synced 2025-06-05 23:29:12 +02:00 
			
		
		
		
	fix issue where scope would be missing the * if the user was not logged in before calling the authorize endpoint
fix #4200
This commit is contained in:
		@@ -262,7 +262,7 @@ def get_referer(env, fallback = "/", unroll = true)
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  referer = referer.request_target
 | 
			
		||||
  referer = "/" + referer.gsub(/[^\/?@&%=\-_.:,0-9a-zA-Z]/, "").lstrip("/\\")
 | 
			
		||||
  referer = "/" + referer.gsub(/[^\/?@&%=\-_.:,*0-9a-zA-Z]/, "").lstrip("/\\")
 | 
			
		||||
 | 
			
		||||
  if referer == env.request.path
 | 
			
		||||
    referer = fallback
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user