View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004271 | mantisbt | bugtracker | public | 2004-08-04 18:34 | 2013-02-24 18:01 |
Reporter | syzop | Assigned To | dregad | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | won't fix | ||
Summary | 0004271: URLs that include #'s | ||||
Description | [not a duplicate of 0003866, but related] | ||||
Additional Information | I often refer to our FAQ from the bugtracker, which has urls like http://blah.net/bla/faq.php#FIVE (where FIVE is the actual digit 5). | ||||
Tags | No tags attached. | ||||
http://blah.net/bla/faq.php#5 <- that's php DASH FIVE edit sorry for the confusion. edited on: 08-04-04 18:39 |
|
OK, so the problem is that bug references are being expanded inside URLs. |
|
This has been reported in other fields. For exampe, HTML tags can show up in headings (ref 0004126). edited on: 08-06-04 11:42 |
|
This problem appears with other characters too. For example &0004126. Are there any plans to escape those bug link tags or note tags other than changing the config file? |
|
I think using # char for hotlinking bug numbers was an unfortunate choice. That said, please note that using plain numbers for anchors (like in <a name="5"> is an error according to w3c standards. see: |
|
So the current matching regex's are allowing hyperlinks containing foo.html#1 ( foo dot html hash 1), but not allowing a hyperlink containing /0000001 (slash hash 1) |
|
As mentioned by giallu in 0004271:0017848, id/name tags are not allowed to start with a digit and must match the pattern [A-Za-z][A-Za-z0-9:_.-]* as per html 4.01 standard [1]. In later versions of the standard, it is recommended to stick to this pattern for backwards-compatibility [2], even though technically a wider range of characters is permitted [3] Based on the above, I'm resolving this as "won't fix". For those who would want to alter MantisBT to match syzop's requirements, the regex in string_process_bug_link() function can be altered to exclude additional chars, e.g. the '/' in the example below:
[1] http://www.w3.org/TR/html4/types.html#type-id |
|