mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 14:31:02 +00:00 
			
		
		
		
	Prevent use of double sub-path and incorrect asset path in manifest (#14827)
MakeAbsoluteAssetURL should just url join the static url prefix on to appurl if it is not an absolute path - this is because StaticURLPrefix is an absolute prefix not a relative prefix to the app sub url. Fix #14422 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
		
					parent
					
						
							
								2e8ce1eaed
							
						
					
				
			
			
				commit
				
					
						cf29cb30d3
					
				
			
		
					 2 changed files with 7 additions and 4 deletions
				
			
		|  | @ -1090,7 +1090,7 @@ func MakeAbsoluteAssetURL(appURL string, staticURLPrefix string) string { | |||
| 		} | ||||
| 
 | ||||
| 		// StaticURLPrefix is just a path | ||||
| 		return strings.TrimSuffix(appURL, "/") + strings.TrimSuffix(staticURLPrefix, "/") | ||||
| 		return util.URLJoin(appURL, strings.TrimSuffix(staticURLPrefix, "/")) | ||||
| 	} | ||||
| 
 | ||||
| 	return strings.TrimSuffix(staticURLPrefix, "/") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue