Edgewall Software

Opened 8 years ago

Last modified 2 years ago

#11576 new defect

Cut and paste of external links leads to zero-width character in string

Reported by: vladmihaisima@… Owned by:
Priority: normal Milestone: next-stable-1.4.x
Component: general Version: 1.0
Severity: normal Keywords: link unicode
Cc: vladmihaisima@…, Ryan J Ollos Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

When copy pasting text which includes an external link a zero width character is introduced in the text.

For example when copying from page WikiFormatting the lines in the "Links" row of the table (more specifically, the first sub-line) the Unicode character \u200b is introduced between the text in the first column and the text in the second.

This caused problems in Firefox 26.0 (Firefox 25.0 was working), when the link was: git clone ssh://user@host/project and my guess is that it can cause unnecessary frustration (not that I am aware of the problem, I can escape the links, but I did not know that previously and, even worse, it used to work).

Personally, if the only reason for the zero-width character is the icon, I would be perfectly fine without the icon.

This bug is related (but not identical with): #10668, #10865 and might have been a cause of #9529 (maybe a pasted link reached timeline)

For anybody wishing to patch their trac code is at source:tags/trac-1.0/trac/wiki/formatter.py#L710

Attachments (0)

Change History (5)

comment:1 by Ryan J Ollos, 8 years ago

Cc: Ryan J Ollos added
Milestone: next-stable-1.0.x

comment:2:ticket:11351 may be related as well. I guess maybe we need to come up with a solution different from stripping ZWSPs everywhere they are taken as form or macro input.

comment:2 by Ryan J Ollos, 8 years ago

Description: modified (diff)

comment:3 by Ryan J Ollos, 7 years ago

#12245 closed as a duplicate.

Last edited 7 years ago by Ryan J Ollos (previous) (diff)

comment:4 by Ryan J Ollos, 6 years ago

Milestone: next-stable-1.0.xnext-stable-1.2.x

Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.

comment:5 by Ryan J Ollos, 2 years ago

Milestone: next-stable-1.2.xnext-stable-1.4.x

Modify Ticket

Change Properties
Set your email in Preferences
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment

E-mail address and name can be saved in the Preferences .
Note: See TracTickets for help on using tickets.