Project

General

Profile

Actions

Defect #31831

closed

Back url parse in validation

Added by Tibinko H over 5 years ago. Updated 9 months ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Hello,

for example on issues screen, when you apply filters, it generates an url containing:

utf8=✓

Because of this bulk_edit (for instance) is unable to redirect back to this url.
The reason is a function in application_controller.rb - validate_back_url

URI.parse(back_url) is unable to parse the special character mentioned above.

The quicke workaround would be

URI.parse(URI.encode(back_url))

but i am not sure that is sufficient.


Files

31831.patch (1.2 KB) 31831.patch Go MAEDA, 2024-02-13 10:16

Related issues

Related to Redmine - Defect #31552: View switches from gantt to list after editing an issueClosedGo MAEDA

Actions
Related to Redmine - Feature #40190: Stop appending the utf8 checkmark parameter to form URLsClosedMarius BĂLTEANU

Actions
Actions

Also available in: Atom PDF