https://bugzilla.wikimedia.org/show_bug.cgi?id=21261
--- Comment #11 from Allen Stambaugh <[email protected]> 2011-12-07 02:32:02 UTC --- (In reply to comment #10) > (In reply to comment #9) > Wikitext is written in text. Replacing [ and ] with something else which > doesn't conflict could work but... How do you choose which [ ] to replace? Let me start by rephrasing your question. How do you find the host name in a URL? In the examples below I have omitted the port number, path name, and query string. ftp://$hostname => ftp://[::1] http://$hostname => http://[::1] https://$hostname => https://[::1] mailto:$username@$hostname => mailto:$username@[::1] In each case the IPv6 address (enclosed in brackets) comes after two slashes "//" or an at sign "@". The filter_var() function is used in my script to test for an IPv6 address. No other brackets or colons should be replaced with their full width equivalents and these full width characters should be replaced by their ascii equivalents after the HTML links have been created. As I said before this is something of a kludge and I would prefer some better way of fixing this. -- 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 [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
