You are here

function advagg_force_https_path in Advanced CSS/JS Aggregation 7.2

Convert http:// and // to https://.

Parameters

string $path: Path to check.

Return value

string The path.

5 calls to advagg_force_https_path()
advagg_convert_abs_to_rel in ./advagg.module
Converts absolute paths to be self references.
advagg_file_create_url in ./advagg.module
Wrapper around file_create_url() to do post-processing on the created url.
advagg_relocate_get_remote_data in advagg_relocate/advagg_relocate.advagg.inc
Gets external CSS and JS files; caches and returns response.
advagg_relocate_get_remote_font_data in advagg_relocate/advagg_relocate.advagg.inc
Gets external CSS files; caches it and returns css font rules.
_advagg_relocate_get_urls in advagg_relocate/advagg_relocate.module
Return a filename => url array for external assets.
3 string references to 'advagg_force_https_path'
advagg_admin_settings_form in ./advagg.admin.inc
Form builder; Configure advagg settings.
advagg_current_hooks_hash_array in ./advagg.module
Get an array of all hooks and settings that affect aggregated files contents.
advagg_file_create_url in ./advagg.module
Wrapper around file_create_url() to do post-processing on the created url.

File

./advagg.module, line 4966
Advanced CSS/JS aggregation module.

Code

function advagg_force_https_path($path) {
  if (strpos($path, 'http://') === 0) {
    $path = 'https://' . substr($path, 7);
  }
  elseif (strpos($path, '//') === 0) {
    $path = 'https:' . $path;
  }
  return $path;
}