dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 6594b2590d9b9c8ba7653b69bba4a73a87b13f31
parent 182d023cf57a5178aba9e044f54937f8189823ac
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu,  6 Apr 2023 13:18:58 -0700

fu** user input :P

Diffstat:
Mpkg/web/handlers/api/v1/slashInterceptor.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/web/handlers/api/v1/slashInterceptor.go b/pkg/web/handlers/api/v1/slashInterceptor.go @@ -1259,7 +1259,7 @@ func handleProfileCmd(c *Command) (handled bool) { return true } profile := `/u/` + user.Username - c.zeroMsg(fmt.Sprintf(`[<a href="%s" rel="noopener noreferrer" target="_blank">profile of %s</a>]`, profile, username)) + c.zeroMsg(fmt.Sprintf(`[<a href="%s" rel="noopener noreferrer" target="_blank">profile of %s</a>]`, profile, user.Username)) c.err = ErrRedirect return true } else if strings.HasPrefix(c.message, "/p ") {