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

Parameters

string $path: Path to check.

Return value

string The path.

8 calls to advagg_force_https_path()
advagg_admin_settings_form in ./advagg.admin.inc
Form builder; Configure advagg settings.
advagg_convert_abs_to_rel in ./advagg.module
Converts absolute paths to be self references.
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.
advagg_file_create_url in ./advagg.module
Wrapper around file_create_url() to do post-processing on the created url.

... See full list

4 string references to 'advagg_force_https_path'
advagg.module in ./advagg.module
Advanced CSS/JS aggregation module.
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 4967

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