Project

General

Profile

Actions

Defect #26507

closed

"attachment:filename" link syntax would not work if the file name contains "@"

Defect #26507: "attachment:filename" link syntax would not work if the file name contains "@"

Added by Go MAEDA over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Text formatting
Target version:
Resolution:
Fixed
Affected version:

Description

A file name which contains "@" is treated as email address.

Probably all versions that support "attachment:filename" syntax are affected. redmine.org is also affected. Please see this example: wrong-attachment-link@2x.png

[Textile]

attachment:image@2x.png

[Expected output]

<a class="attachment" href="/attachments/***/image@2x.png">image@2x.png</a>

[Actual output]

attachment:<a class="email" href="mailto:image@2x.png">image@2x.png</a>


Files


Related issues 2 (0 open — 2 closed)

Related to Redmine - Defect #27968: Image filename for HDPI monitors (image@2x.jpg) are misrecognized as email addressClosedJean-Philippe LangActions
Blocked by Redmine - Defect #26443: User link syntax (user:login) doesn't work for logins consisting of an email adressClosedMarius BĂLTEANUActions

Updated by Marius BĂLTEANU over 9 years ago Actions #1

I can work on this, but the fix will be based on the one from #26443.

Updated by Go MAEDA over 9 years ago Actions #2

Marius BALTEANU wrote:

I can work on this, but the fix will be based on the one from #26443.

Sounds great. I set the target version of #26443 to 3.4.3. Could you write a patch?

Updated by Marius BĂLTEANU over 9 years ago Actions #3

  • File 26507_fix_attachment_links_with_@_in_file_name added

Go MAEDA wrote:

Sounds great. I set the target version of #26443 to 3.4.3. Could you write a patch?

Here it is. In order to apply this patch, you need to apply first the patch from #26443.

Updated by Go MAEDA over 9 years ago Actions #4

  • Blocked by Defect #26443: User link syntax (user:login) doesn't work for logins consisting of an email adress added

Updated by Go MAEDA over 9 years ago Actions #5

  • Target version set to 3.4.3

The patch looks good to me and passed all tests.
Setting target version to 3.4.3.

Marius, thank you for writing the patch.

Updated by Marius BĂLTEANU over 9 years ago Actions #6

  • File 26507_fix_attachment_links_with_@_in_file_name.patch added

Updated the patch to work with the latest changes from #26443.

Updated by Marius BĂLTEANU over 9 years ago Actions #7

  • File deleted (26507_fix_attachment_links_with_@_in_file_name)

Updated by Jean-Philippe Lang about 9 years ago Actions #8

  • Target version changed from 3.4.3 to 4.0.0

#26443 is now set for 4.0.

Updated by Mischa The Evil almost 9 years ago Actions #9

  • Related to Defect #27968: Image filename for HDPI monitors (image@2x.jpg) are misrecognized as email address added

Updated by Marius BĂLTEANU over 8 years ago Actions #10

  • File deleted (26507_fix_attachment_links_with_@_in_file_name.patch)

Updated by Marius BĂLTEANU over 8 years ago Actions #11

Updated the patch to apply cleanly against current trunk (r17286).

Updated by Marius BĂLTEANU over 8 years ago Actions #12

  • Status changed from New to Confirmed

Updated by Jean-Philippe Lang over 8 years ago Actions #13

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed

Thanks Marius.

Updated by Go MAEDA over 8 years ago Actions #14

  • Assignee set to Jean-Philippe Lang
Actions

Also available in: PDF Atom