Modify ↓
Opened 16 years ago
Closed 13 years ago
#4920 closed defect (fixed)
img url incorrect if base_url includes trailing slash
Reported by: | Michael Ching | Owned by: | Kamil Kisiel |
---|---|---|---|
Priority: | normal | Component: | TracMathPlugin |
Severity: | normal | Keywords: | |
Cc: | Mitar | Trac Release: | 0.11 |
Description
The generated <img src=... tag includes an extra / if base_url includes a trailing slash.
Something like this resolves for us:
diff tracmath.py.orig tracmath.py 187c187,191 < result = '<img src="%s/tracmath/%s" alt="%s" />' % (req.base_url, imgname, content) ---
path = '/tracmath/' if req.base_url[-1] == '/':
path = 'tracmath/'
result = '<img src="%s%s%s" alt="%s" />' % (req.base_url, path, imgname, content)
Attachments (0)
Change History (3)
comment:1 Changed 16 years ago by
comment:2 Changed 14 years ago by
Owner: | changed from rlotun to Kamil Kisiel |
---|---|
Status: | new → assigned |
comment:3 Changed 13 years ago by
Cc: | Mitar added; anonymous removed |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Fixed in 0.5.
Note: See
TracTickets for help on using
tickets.
Forgot the code tags in initial ticket: