Project

General

Profile

Actions

Feature #40190

closed

Stop appending the utf8 checkmark parameter to form URLs

Added by Go MAEDA 11 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Ruby on Rails appends the "utf8=✓" parameter to form URLs. I propose to remove this parameter by setting config.action_view.default_enforce_utf8 to false.
https://guides.rubyonrails.org/v7.1/configuring.html#config-action-view-default-enforce-utf8

The parameter is added to prevent older versions of Internet Explorer from encoding UTF-8 strings with Latin1. But Microsoft ended the support for Internet Explorer in 2021 and Redmine also dropped support for Internet Explorer in Redmine 5.0 (#34978). So, I believe the "utf8=✓" parameter is no longer necessary.

What is the _snowman param in Ruby on Rails 3 forms for? - Stack Overflow

Removing the "utf8=✓" parameter has the following benefits:

  1. URLs will be a bit cleaner
  2. The code to handle "utf8=✓" can be removed
  3. Problems caused by the parameter such as #31831 will never occur

Files


Related issues

Related to Redmine - Defect #31831: Back url parse in validationClosedMarius BĂLTEANU

Actions
Actions #1

Updated by Go MAEDA 11 months ago

Actions #2

Updated by Marius BĂLTEANU 10 months ago

  • Assignee set to Marius BĂLTEANU
Actions #3

Updated by Marius BĂLTEANU 10 months ago

  • Status changed from New to Resolved
  • Target version set to 6.0.0
  • Resolution set to Fixed

Committed, thanks! It is a nice cleanup!

Actions #4

Updated by Marius BĂLTEANU 10 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF