Defect #10413

Creating wiki pages with special characters may be problematic

Added by André Bachmann about 5 years ago. Updated about 3 years ago.

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

0%

Category:Wiki
Target version:Candidate for next minor release
Resolution: Affected version:1.3.1

Description

I recently noticed some little quirks when creating wiki pages with certain special characters.
For instance, I can write on a wiki page a link to a new page as [[M&P]]. As soon as I click on submit, the link to this page is shown in the wiki as M& (without the letter P). However, the resulting wiki page is called M&#38P.
The next problem is when I write a link as [[M#P]] on a wiki page and click on submit. This link is shown as M, the resulting wiki page gets the name M#P, which may dangerous because a hash # has a special meaning in URLs.
Let's look at a link [[M%P]]. The resulting link to this wiki page is correctly shown as M%P. But the wiki page itself is named M%25P.

My Redmine environment:

About your application's environment
Ruby version              1.8.7 (x86_64-linux)
RubyGems version          1.6.2
Rack version              1.1.1
Rails version             2.3.14
Active Record version     2.3.14
Active Resource version   2.3.14
Action Mailer version     2.3.14
Active Support version    2.3.14
Application root          /opt/redmine-1.3.1-0/apps/redmine
Environment               production
Database adapter          mysql
Database schema version   20110902000000

About your Redmine plugins
Redmine Wiki Extensions plugin   0.3.8
Redmine Logs plugin              0.0.3

0001-Fix-6991-ampersand-in-pagename.patch Magnifier (845 Bytes) Alexander Oryol, 2012-05-17 13:23

error.jpg - wiki error (33.5 KB) carlos castro, 2014-02-06 16:26


Related issues

Related to Redmine - Defect #14071: HTML links weird when using special characters New

History

#1 Updated by Etienne Massip about 5 years ago

  • Status changed from New to Confirmed
  • Target version set to Candidate for next minor release

#2 Updated by André Bachmann about 5 years ago

There is also a problem when using these characters in a wiki text (may be related with this issue, so I post it here): If I write a percent sign directly followd by a comma, the percent sign isn't shown in the resulting wiki page (only the comma is shown). If I write an ampersand directly followed by a comma, it is shown as x%x, which is quite weird.

#3 Updated by Alexander Oryol almost 5 years ago

Added the small patch to solve the issue.

#4 Updated by André Bachmann over 4 years ago

Any chance that this patch gets integrated into Redmine?

#5 Updated by Francesco V almost 4 years ago

Page "Version 1.2.3" result in "Version 123"

#6 Updated by Jaroslav Povolný almost 4 years ago

Confirming this issue, in Redmine 2.3

#7 Updated by carlos castro about 3 years ago

Is this solved?
When i create a link that has an accent in a wiki it returns me his html code (check image)...
My env:
Environment:
Redmine version 2.3.3.stable
Ruby version 2.0.0-p247 (2013-06-27) [x86_64-linux]
Rails version 3.2.13
Environment production
Database adapter PostgreSQL
Redmine plugins:
planner 0.4
redmine_backlogs v1.0.6
redmine_charts2 0.2.1
redmine_ckeditor 1.0.15
redmine_didyoumean 1.2.0
redmine_importer 1.2
redmine_loader 0.3b
redmine_schedules 0.5.0
redmine_summed_fields 0.0.2
redmine_todos 2.0.5
scrum2b 0.1
under_construction 0.0.1

is there any workaround for this?

Also available in: Atom PDF