Merge pull request #10810 from MrPetovan/bug/photo-route
Fix regular expression in the user avatar photo routes
This commit is contained in:
		
				commit
				
					
						ec4034ad14
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -373,10 +373,10 @@ return [
 | 
			
		|||
	'/photo' => [
 | 
			
		||||
		'/{name}'                             => [Module\Photo::class, [R::GET]],
 | 
			
		||||
		// User Id Fallback, to remove after version 2021.12
 | 
			
		||||
		'/{type}/{uid_ext:\d+}'               => [Module\Photo::class, [R::GET]],
 | 
			
		||||
		'/{type}/{uid_ext:\d+\..*}'               => [Module\Photo::class, [R::GET]],
 | 
			
		||||
		'/{type}/{nickname_ext}'              => [Module\Photo::class, [R::GET]],
 | 
			
		||||
		// User Id Fallback, to remove after version 2021.12
 | 
			
		||||
		'/{type}/{customsize}/{uid_ext:\d+}'  => [Module\Photo::class, [R::GET]],
 | 
			
		||||
		'/{type}/{customsize}/{uid_ext:\d+\..*}'  => [Module\Photo::class, [R::GET]],
 | 
			
		||||
		'/{type}/{customsize}/{nickname_ext}' => [Module\Photo::class, [R::GET]],
 | 
			
		||||
	],
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue