https://bugzilla.wikimedia.org/show_bug.cgi?id=21261

--- Comment #9 from Allen Stambaugh <[email protected]> 2011-12-03 04:36:16 
UTC ---
(In reply to comment #7)
> That doesn't help, since you would still need to detect IPv6 addresses written
> with normal brackets.

I am not sure what you mean. Are you referring to my php script? (Corrected
lines 11-16 below.)

> $host = ( $hostName == '['.substr( $hostName, 1, strlen( $hostName ) - 2 
> ).']' ) ? substr( $hostName, 1, strlen( $hostName ) - 2 ) : $hostName;
> if ( filter_var( $host, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 ) ) {
>       $hostName = str_replace( '[', '[', $hostName );
>       $hostName = str_replace( ':', ':', $hostName );
>       $hostName = str_replace( ']', ']', $hostName );
> }

Or are you referring to the template code. (See
http://www.mediawiki.org/wiki/User:Allen4names)

(In reply to comment #8)
> I added a parser test in r104314.

You may want to check line 1211 of revision 104314 for missing brackets.

-- 
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

Reply via email to