HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.36k stars 73 forks source link

Invalid slug with a subdomain generates 400 server error on view #287

Closed gitstua closed 1 month ago

gitstua commented 1 month ago

👋 Hi Herman, great work on the blogging platform!

I just created a username of cloudy_stuey and created some basic content. Each time I visited the site I saw Image

I see #47 mentioned this area too however is closed.

To reproduce the problem

  1. sign up for new account
  2. create blog with _
  3. press view on the dashboard
HermanMartinus commented 1 month ago

Thanks for reporting this. Underscores should not be used in slugs or subdomains at all. I do enforce that on slugs, but not on subdomains. I'll set that up shortly.

HermanMartinus commented 1 month ago

Fixed in the latest commit. Thanks again.