Convert http:// and // to https://.
Paramètres
string $path: Path to check.
Return value
string The path.
8 calls to advagg_force_https_path()
- advagg_admin_settings_form dans ./
advagg.admin.inc - Form builder; Configure advagg settings.
- advagg_convert_abs_to_rel dans ./
advagg.module - Converts absolute paths to be self references.
- advagg_current_hooks_hash_array dans ./
advagg.module - Get an array of all hooks and settings that affect aggregated files contents.
- advagg_file_create_url dans ./
advagg.module - Wrapper around file_create_url() to do post-processing on the created url.
- advagg_file_create_url dans ./
advagg.module - Wrapper around file_create_url() to do post-processing on the created url.
4 string references to 'advagg_force_https_path'
- advagg.module dans ./
advagg.module - Advanced CSS/JS aggregation module.
- advagg_admin_settings_form dans ./
advagg.admin.inc - Form builder; Configure advagg settings.
- advagg_current_hooks_hash_array dans ./
advagg.module - Get an array of all hooks and settings that affect aggregated files contents.
- advagg_file_create_url dans ./
advagg.module - Wrapper around file_create_url() to do post-processing on the created url.
Fichier
-
./
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;
}