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

Allen Stambaugh <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Allen Stambaugh <[email protected]> 2011-11-24 02:16:59 
UTC ---
It is a bit of a kludge but the colons and brackets used for IPv6 addresses can
be replaced with their full-width forms. The following code assumes that
$hostName
has been set.

> $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 ) ) {
> str_replace( '[', '[', $hostName );
> str_replace( ':', ':', $hostName );
> str_replace( ']', ']', $hostName );
> }

I the meantime this wiki template code may be useful.

> [{{{1|}}}:{{{2|}}}:{{{3|1}}}{{#if:
>   {{{8|}}}|:{{{4|}}}:{{{5|}}}:{{{6|}}}:{{{7|}}}:{{{8}}}|{{#if:
>   {{{7|}}}|:{{{4|}}}:{{{5|}}}:{{{6|}}}:{{{7}}}|{{#if:
>   {{{6|}}}|:{{{4|}}}:{{{5|}}}:{{{6}}}|{{#if:
>   {{{5|}}}|:{{{4|}}}:{{{5}}}|{{#if:
>   {{{4|}}}|:{{{4}}} }} }} }} }} }}]

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