Convert http:// to https://.

Parameters

string $path: Path to check.

Return value

string The path.

2 calls to advagg_path_convert_force_https()
CssCollectionOptimizer::optimize in src/Asset/CssCollectionOptimizer.php
JsCollectionOptimizer::optimize in src/Asset/JsCollectionOptimizer.php

File

./advagg.module, line 658

Code

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