Couchers-org / couchers

The next-generation couch surfing platform. Free forever. Community‑led. Non‑profit. Modern. Chuck us a star :)
https://couchers.org
MIT License
374 stars 77 forks source link

> and < messing in URL descriptions messing up with layout #4157

Open CouchersBot opened 2 years ago

CouchersBot commented 2 years ago

Subject: > and < messing in URL descriptions messing up with layout Description: I used to have something like ">texttolink<" with > and < in the description of the url on my profile which messed up the layout of everything that followed

Results: I removed the > and < and it worked again

Backend version: develop-38fcd1a9 Frontend version: develop-38fcd1a9 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0 Page: https://app.couchers.org/profile/about User: knapsu (2467)

aapeliv commented 2 years ago

I haven't been able to reproduce this, anyone else?

lucaslcode commented 2 years ago

I contacted this user, the problem is we strip everything between < and >. Should change the regex so it terminates at newlines