Defect #14071

HTML links weird when using special characters

Added by André Bachmann over 9 years ago. Updated almost 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Text formatting
Target version:-
Resolution:Wont fix Affected version:2.3.1


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 €":;ARTICLE=87308;GROUPID=771;PROVID=2;&utm_source=Preisvergleich&utm_medium=CPC&

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 proble... Closed


#1 Updated by Etienne Massip over 9 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 €

#2 Updated by Toshi MARUYAMA over 9 years ago

  • Category set to Text formatting

#3 Updated by Go MAEDA almost 4 years ago

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

Also available in: Atom PDF