mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 17:27:50 +02:00
URL encode username in user link
This commit is contained in:
@@ -255,7 +255,7 @@ object helpers extends AvatarImageProvider with LinkConverter with RequestCache
|
||||
/**
|
||||
* Generates the url to the account page.
|
||||
*/
|
||||
def url(userName: String)(implicit context: Context): String = s"${context.path}/${userName}"
|
||||
def url(userName: String)(implicit context: Context): String = s"${context.path}/${StringUtil.urlEncode(userName)}"
|
||||
|
||||
/**
|
||||
* Returns the url to the root of assets.
|
||||
|
||||
Reference in New Issue
Block a user