Last modified: 2011-08-25 18:04:24 UTC
I would like to have some way to avoid the conversion of r20 to a link for a code revision (something similar to a <nowiki> tag) in specific parts of a bug report (such as [1]). Is that possible? [1] https://bugzilla.wikimedia.org/show_bug.cgi?id=30441#c2
Test: foo1 bar1 baz1.
Notice that in my previous comment there is an "r1" which shouldn't be converted at all, since it is not a "word". A regular expression such as "\br(\d+)\b" would match only the desired cases, I think (although I don't know if the conversion of links is done by means of regexes - BTW: where can I find the source code of this?).
http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/bugzilla/bugzilla-4.0/extensions/Wikimedia/Extension.pm?view=markup
(In reply to comment #3) > http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/bugzilla/bugzilla-4.0/extensions/Wikimedia/Extension.pm?view=markup Thanks! I'm pretty sure the regex "qr{\br(\d+)\b}" can be used instead of the current "qr{r(\d+)}" to avoid the unwanted conversion of variable names to links for MW code revisions. Should I fork this request to a new bug?
(In reply to comment #4) > Should I fork this request to a new bug? Yes. Closing this one since it has been solved (if not yet deployed).
(In reply to comment #5) > (In reply to comment #4) > > Should I fork this request to a new bug? > > Yes. Closing this one since it has been solved (if not yet deployed). Sorry, but what has been solved?
Brion patched the code. Even if that doesn't fix the problem after the code has been deployed, then this bug is really a duplicate of Bug #29039 which already has a fix ready as well. I haven't had time to update the code, though since I wanted to test it some more for possible XSS. Until we're willing to make each bug's comment editable in the wiki way (something else people have asked for repeatedly), I don't think we're going to implment <nowiki>. There is an actual bug here, and a fix to that bug has been made. But, if you feel the bug can't be marked “FIXED” until you can use <nowiki>, then this is probably going to get WONTFIXed. If that is what you want, I think filing a bug against bugzilla itself (https://bugzilla.mozilla.org/enter_bug.cgi?format=guided#h=dupes|Bugzilla) is going to be what you want. (Um… sorry for the essay. :P )