Plugin Directory


Ignore:
Timestamp:
02/25/2026 02:19:09 PM (4 weeks ago)
Author:
sc0ttkclark
Message:

Update to version 3.3.7 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pods/trunk/classes/fields/website.php

    r3468973 r3469523  
    306306        }
    307307
    308         if ( false === strpos( $value, '://' ) && 0 !== strpos( $value, '//' ) ) {
     308        if ( false === strpos( (string) $value, '://' ) && 0 !== strpos( (string) $value, '//' ) ) {
    309309            $value = 'http://' . $value;
    310310        }
     
    329329                $value = $this->build_url( $url, $options );
    330330            } elseif ( 'no-www' === pods_v( static::$type . '_format', $options ) ) {
    331                 if ( 0 === strpos( $url['host'], 'www.' ) ) {
    332                     $url['host'] = substr( $url['host'], 4 );
     331                if ( 0 === strpos( (string) $url['host'], 'www.' ) ) {
     332                    $url['host'] = substr( (string) $url['host'], 4 );
    333333                }
    334334
    335335                $value = $this->build_url( $url, $options );
    336336            } elseif ( 'force-www' === pods_v( static::$type . '_format', $options ) ) {
    337                 if ( false !== strpos( $url['host'], '.' ) && false === strpos( $url['host'], 'www', 0 ) ) {
     337                if ( false !== strpos( (string) $url['host'], '.' ) && false === strpos( (string) $url['host'], 'www', 0 ) ) {
    338338                    $url['host'] = 'www.' . $url['host'];
    339339                }
     
    348348                }
    349349            } elseif ( 'no-http-no-www' === pods_v( static::$type . '_format', $options ) ) {
    350                 if ( 0 === strpos( $url['host'], 'www.' ) ) {
    351                     $url['host'] = substr( $url['host'], 4 );
     350                if ( 0 === strpos( (string) $url['host'], 'www.' ) ) {
     351                    $url['host'] = substr( (string) $url['host'], 4 );
    352352                }
    353353
     
    359359                }
    360360            } elseif ( 'no-http-force-www' === pods_v( static::$type . '_format', $options ) ) {
    361                 if ( false !== strpos( $url['host'], '.' ) && false === strpos( $url['host'], 'www', 0 ) ) {
     361                if ( false !== strpos( (string) $url['host'], '.' ) && false === strpos( (string) $url['host'], 'www', 0 ) ) {
    362362                    $url['host'] = 'www.' . $url['host'];
    363363                }
Note: See TracChangeset for help on using the changeset viewer.