Ignore:
Timestamp:
May 24, 2009, 9:33:51 AM (15 years ago)
Author:
vdigital
Message:

+ 2.0.d (Called lumenation bypass)some url were generated in https

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/charlies_content/charlies.inc.php

    r3318 r3341  
    2323  $path = $picture['element_path'];
    2424  $url = $picture['element_url'];
    25   if ( substr($url,0,4)!='http' and substr($url,0,1)!='/' )
     25  if ( !url_is_remote($url) )
    2626  {
    2727    set_make_full_url();
    28     $url = get_element_url( $picture );;
     28    $url = get_element_url( $picture );
    2929    unset_make_full_url();
    3030  }
    31 
     31        // If needed NO_https can easily be set in your config_local thru LocalFiles Editor
     32  if (isset($conf['NO_https']) and $conf['NO_https'] and strncasecmp($url, 'https://', 8) == 0 )
     33          $url = 'http://' . substr($url, 8);
     34               
    3235        if (!isset($conf['video_default_width']))       $conf['video_default_width'] = $charlie['video_default_width'];
    3336        if (!isset($conf['video_default_height']))      $conf['video_default_height'] = $charlie['video_default_height'];
Note: See TracChangeset for help on using the changeset viewer.