Project

General

Profile

« Previous | Next » 

Revision fc0e31d7

Added by Renato Botelho over 8 years ago

Import a patch to fix Net_IPv6::compress("::")

Obtained from: https://github.com/phil-davis/Net_IPv6/commit/638b96a253164b65c63825c38e79812b6c5f448d
Submitted by: @phil-davis

View differences:

src/etc/inc/IPv6.inc
740 740

  
741 741
        }
742 742

  
743
        $cip = preg_replace('/((^:)|(:$))/', '', $cip);
744
        $cip = preg_replace('/((^:)|(:$))/', '::', $cip);
743
        if ($cip != "::") {
744
            $cip = preg_replace('/((^:)|(:$))/', '', $cip);
745
            $cip = preg_replace('/((^:)|(:$))/', '::', $cip);
746
        }
745 747

  
746 748
        if (empty($cip)) {
747 749

  

Also available in: Unified diff