Modify ↓
Opened 9 years ago
Closed 9 years ago
#12762 closed defect (fixed)
"[" character is stripped from filename in image macro
| Reported by: | Jun Omae | Owned by: | Jun Omae |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2.2 |
| Component: | wiki system | Version: | |
| Severity: | minor | Keywords: | image |
| Cc: | Branch: | ||
| Release Notes: |
Fix incorrectly stripping |
||
| API Changes: | |||
| Internal Changes: | |||
Description (last modified by )
I noticed [ character is stripped from filename in image macro at tags/trac-1.0.13/trac/wiki/macros.py@:602-603#L601:
# parse filespec argument to get realm and id if contained.
parts = [i.strip('''['"]''')
for i in self._split_filespec_re.split(filespec)[1::2]]
Should be:
- parts = [i.strip('''['"]''') + parts = [i.strip('\'"')
Tried to attach [file.png and specify the file with image macro. I verified [[Image(#5153:[file.png)]] doesn't work in demo-1.0/ticket/5153.
Attachments (0)
Change History (3)
comment:1 by , 9 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 9 years ago
| Owner: | set to |
|---|---|
| Release Notes: | modified (diff) |
| Status: | new → assigned |
comment:3 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.



Fixed in [15827] and merged in [15828].