discourse/app
Rafael dos Santos Silva 76ab0350f1
FIX: Properly encoded slugs when configured to (#8158)
When an admin changes the site setting slug_generation_method to
encoded, we weren't really encoding the slug, but just allowing non-ascii
characters in the slug (unicode).

That brings problems when a user posts a link to topic without the slug, as
our topic controller tries to redirect the user to the correct URL that contains
the slug with unicode characters. Having unicode in the Location header in a
response is a RFC violation and some browsers end up in a redirection loop.

Bug report: https://meta.discourse.org/t/-/125371?u=falco

This commit also checks if a site uses encoded slugs and clear all saved slugs
in the db so they can be regenerated using an onceoff job.
2019-10-11 12:38:16 -03:00
..
assets FEATURE: search topics when adding a link in composer (#8178) 2019-10-11 11:37:44 -04:00
controllers FIX: Properly encoded slugs when configured to (#8158) 2019-10-11 12:38:16 -03:00
helpers SECURITY: mini profiler enabled incorrectly for admins 2019-10-09 12:49:22 +11:00
jobs FIX: Properly encoded slugs when configured to (#8158) 2019-10-11 12:38:16 -03:00
mailers FIX: during concurrent emails generation renderer should not be reused 2019-10-10 08:50:48 +11:00
models DEV: Allow plugins to mark user custom fields as editable only by staff 2019-10-11 09:57:55 +01:00
serializers FEATURE: Display created and last_used dates for API keys 2019-10-09 14:24:41 +01:00
services FIX: during concurrent emails generation renderer should not be reused 2019-10-10 08:50:48 +11:00
views FEATURE: Add site setting to show more detailed 404 errors. (#8014) 2019-10-08 14:15:08 +03:00