Project

General

Profile

Actions

Defect #14071

closed

HTML links weird when using special characters

Added by André Bachmann almost 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

I observed a problem with HTML links in the Ticket description input field (this applies also to wiki pages, of course). My text was this:

"69,95 €":http://www.reichelt.de/?ACTION=3;ARTICLE=87308;GROUPID=771;PROVID=2;&utm_source=Preisvergleich&utm_medium=CPC&utm_campaign=Preisvergleich_geizhals.at-de&psuma=geizhals.at-de&

Now look what Redmine does to it: 69,95 €%

As you can see, it shows an additional % symbol (which clearly doesn't exist) and it changes the last ampersand (&) to x%x in the URL.
I'm not sure, but this may be related to #10413.

My Redmine infos:

bash-4.1# RAILS_ENV=production rake about
About your application's environment
Ruby version 1.9.3 (x86_64-linux)
RubyGems version 1.8.24
Rack version 1.4
Rails version 3.2.13
Active Record version 3.2.13
Action Pack version 3.2.13
Active Resource version 3.2.13
Action Mailer version 3.2.13
Active Support version 3.2.13
Middleware Rack::Cache, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x000000032869e8>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication
Application root /opt/redmine-2.3.1-0/apps/redmine/htdocs
Environment production
Database adapter mysql2
Database schema version 20130217094251


Related issues

Related to Redmine - Defect #10413: Creating wiki pages with special characters may be problematicClosed

Actions
Actions #1

Updated by Etienne Massip almost 11 years ago

That's because of the trailing URL query parameter separator '&'. You can remove it safely from the URL if it's not followed by anything:

69,95 €

Actions #2

Updated by Toshi MARUYAMA almost 11 years ago

  • Category set to Text formatting
Actions #3

Updated by Go MAEDA over 5 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix
Actions

Also available in: Atom PDF