discourse/spec
Sam d716e32a32
FIX: bots could generate errors when slug generation method is encoded (#17224)
* FIX: bots could generate errors when slug generation method is encoded

When slug generation method is encoded (non default) then bots could
cause errors in the logs for urls containing special chars.

ó for example in a URL can be requested in a valid ASCII-8BIT string, and
later when joined to UTF-8 would result in encoding issues.

Fix here ensures we force encoding correctly for outlier cases.

Browser tend to always encode these chars, hence we did not notice this.


Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2022-07-29 16:27:52 +10:00
..
fabricators DEV: Fix `fabricator` deprecations (#17658) 2022-07-26 01:47:09 +02:00
fixtures FIX: Missing translation when translation override contained a `%{key}` (#16625) 2022-05-04 17:35:22 +02:00
helpers FIX: bots could generate errors when slug generation method is encoded (#17224) 2022-07-29 16:27:52 +10:00
import_export Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
initializers Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
integration Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
integrity Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
jobs Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
lib FIX: UserCommScreener filter acting user ID from target user IDs (#17702) 2022-07-28 13:04:24 +10:00
mailers Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
models FIX: Ensure theme_uploads_local only has one `/` at beginning (#17719) 2022-07-28 22:20:52 +01:00
multisite Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
requests FIX: Accept HEAD requests for mandrill webhook (#17180) 2022-07-29 16:26:31 +10:00
script/import_scripts Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
serializers DEV: Add reviewables tab to the new user menu (#17630) 2022-07-28 11:16:33 +03:00
services Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
support DEV: Add reviewables tab to the new user menu (#17630) 2022-07-28 11:16:33 +03:00
tasks FEATURE: Create upload_references table (#16146) 2022-06-09 09:24:30 +10:00
views Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
rails_helper.rb DEV: Apply Rails 6.1 defaults 2022-05-24 17:13:44 +02:00
regenerate_swagger_docs DEV: Add API docs for uploads and API doc watcher (#15387) 2021-12-23 08:40:15 +10:00
swagger_helper.rb DEV: Fix openapi definition logo URL (#17038) 2022-06-08 13:10:20 +01:00