mirror of
				https://github.com/abhinavxd/libredesk.git
				synced 2025-11-04 05:53:30 +00:00 
			
		
		
		
	fix: remove trailing slash from root URL in settings update
This commit is contained in:
		@@ -45,6 +45,9 @@ func handleUpdateGeneralSettings(r *fastglue.Request) error {
 | 
			
		||||
		return r.SendErrorEnvelope(fasthttp.StatusBadRequest, "Bad request", nil, "")
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Remove any trailing slash `/` from the root url.
 | 
			
		||||
	req.RootURL = strings.TrimRight(req.RootURL, "/")
 | 
			
		||||
 | 
			
		||||
	if err := app.setting.Update(req); err != nil {
 | 
			
		||||
		return sendErrorEnvelope(r, err)
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user