mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	encodeURI redirect url
This commit is contained in:
		| @@ -53,7 +53,7 @@ helpers.notAllowed = function (req, res, error) { | ||||
|  | ||||
| helpers.redirect = function (res, url) { | ||||
| 	if (res.locals.isAPI) { | ||||
| 		res.set('X-Redirect', url).status(200).json(url); | ||||
| 		res.set('X-Redirect', encodeURI(url)).status(200).json(url); | ||||
| 	} else { | ||||
| 		res.redirect(nconf.get('relative_path') + encodeURI(url)); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user