mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 13:18:33 +08:00
76ab0350f1
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. |
||
---|---|---|
.. | ||
clean_up_post_timings.rb | ||
clean_up_sidekiq_statistic.rb | ||
clean_up_user_export_topics.rb | ||
clear_width_and_height.rb | ||
correct_missing_dualstack_urls.rb | ||
create_tags_search_index.rb | ||
fix_encoded_topic_slugs.rb | ||
fix_featured_link_for_topics.rb | ||
fix_invalid_gravatar_uploads.rb | ||
fix_invalid_upload_extensions.rb | ||
fix_out_of_sync_user_uploaded_avatar.rb | ||
fix_posts_read.rb | ||
fix_primary_emails_for_staged_users.rb | ||
fix_retro_anniversary.rb | ||
fix_s3_etags.rb | ||
grant_emoji.rb | ||
grant_first_reply_by_email.rb | ||
grant_onebox.rb | ||
init_category_tag_stats.rb | ||
migrate_censored_words.rb | ||
migrate_custom_emojis.rb | ||
migrate_featured_links.rb | ||
migrate_tagging_plugin.rb | ||
migrate_upload_extensions.rb | ||
migrate_url_site_settings.rb | ||
onceoff.rb | ||
post_uploads_recovery.rb | ||
remove_old_auto_close_jobs.rb | ||
retro_grant_anniversary.rb | ||
retro_recent_time_read.rb |