[Bug 21261] MediaWiki cannot convert urls pointing to ipv6 host to links automatically

2010-03-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21261

Peter Potrowl peter...@gmail.com changed:

   What|Removed |Added

   Attachment #6862|0   |1
is obsolete||

--- Comment #4 from Peter Potrowl peter...@gmail.com 2010-03-09 10:08:32 UTC 
---
Created an attachment (id=7186)
 -- (https://bugzilla.wikimedia.org/attachment.cgi?id=7186)
This fixes the problem but might not be safe

I have a very simple solution which consists in removing the brackets ('[' and
']') from the list of forbidden entities in a URL.

This modifies 3 regular expressions: 2 in Parser.php and 1 in Sanitizer.php

However, it should be checked by someone competent because I don't know the
possible implications in terms of security (there might be a good reason why
the brackets were forbidden).

I also note that currently, we do not check whether a URL is valid before
adding a link to it (eg. http://thisisan\invalidtest is transformed to a link).
But I found no explanation on mediawiki.org about what should be a valid (or
invalid) URL.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21261] MediaWiki cannot convert urls pointing to ipv6 host to links automatically

2010-03-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21261

p858snake p858sn...@yahoo.com.au changed:

   What|Removed |Added

   Keywords||need-review, patch
 CC||p858sn...@yahoo.com.au

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21261] MediaWiki cannot convert urls pointing to ipv6 host to links automatically

2009-12-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21261





--- Comment #2 from Jonathan Harker j...@jon.geek.nz  2009-12-08 02:28:55 UTC 
---
Created an attachment (id=6862)
 -- (https://bugzilla.wikimedia.org/attachment.cgi?id=6862)
This does not fix it, as it leaves the path off the IPv6 link. Needs a regex
genius.

Okay so this bug boils down to tweaking the mExtLinkBracketedRegex in
includes/parser/Parser.php

I'm not sure how to alter this to include either passive groups for the IPv6
address brackets, or use a pipe to supply an almost identical alternative.

I'm continuing to fiddle, but there might be a regex genius out there who's
seen this before.

Cheers, J


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 21261] MediaWiki cannot convert urls pointing to ipv6 host to links automatically

2009-10-24 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=21261


Jimmy Xu xu.jimmy@gmail.com changed:

   What|Removed |Added

 CC||xu.jimmy@gmail.com
   Keywords||parser




-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l