mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Upgrade to Crystal v0.30.0 (#548)
This commit is contained in:
		
							parent
							
								
									6e2714404d
								
							
						
					
					
						commit
						17bf1c7709
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -24,7 +24,7 @@ module Kemal | |||
|     end | ||||
| 
 | ||||
|     private def unescape_url_param(value : String) | ||||
|       value.empty? ? value : URI.unescape(value) | ||||
|       value.empty? ? value : URI.decode(value) | ||||
|     rescue | ||||
|       value | ||||
|     end | ||||
|  |  | |||
|  | @ -21,7 +21,7 @@ module Kemal | |||
| 
 | ||||
|       config = Kemal.config.serve_static | ||||
|       original_path = context.request.path.not_nil! | ||||
|       request_path = URI.unescape(original_path) | ||||
|       request_path = URI.decode(original_path) | ||||
| 
 | ||||
|       # File path cannot contains '\0' (NUL) because all filesystem I know | ||||
|       # don't accept '\0' character as file name. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue