function _live_css_sanitize_css_url in Live CSS 6.2
Same name and namespace in other branches
- 7.2 live_css.module \_live_css_sanitize_css_url()
Helper function to sanitize a URL. Removes cache information from url of CSS files.
1 call to _live_css_sanitize_css_url()
File
- ./
live_css.module, line 220
Code
function _live_css_sanitize_css_url($url) {
$result = $url;
$pos = strpos($url, '.css?');
if ($pos !== FALSE) {
$result = substr($url, 0, $pos + 4);
}
$pos = strpos($url, '.less?');
if ($pos !== FALSE) {
$result = substr($url, 0, $pos + 5);
}
return $result;
}