diff options
author | Christian Schneider | 2016-04-07 16:11:49 +0200 |
---|---|---|
committer | Christian Schneider | 2016-04-07 16:11:49 +0200 |
commit | 9bdd6c00fd40d47477c48affe14249e5bcac0ea6 (patch) | |
tree | a4fa5f63741dec3e594ae022c56b4b1ad37fa9b4 | |
parent | a4fbbf05dc76f5acffd3ffd1869ac845e7435bea (diff) | |
download | itools-9bdd6c00fd40d47477c48affe14249e5bcac0ea6.tar.gz itools-9bdd6c00fd40d47477c48affe14249e5bcac0ea6.tar.bz2 itools-9bdd6c00fd40d47477c48affe14249e5bcac0ea6.zip |
Accept // (schema-less) URLs and use it_url::get_cache() for those in preparation for SSL
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -211,7 +211,7 @@ static function checksum($fnlist, $p = array()) */ function crcurl($url, $p = array()) { - if (it::match('^http', $url)) # remote url, must fetch to crc + if (it::match('^(http|//)', $url)) # remote url, must fetch to crc list($fn, $short_expire) = array(it_url::get_cache(array('url' => $url, 'maxage' => 3600, 'safety' => 1, 'id' => "itjs_crcurl") + $p), false); else list($fn, $short_expire) = array(($m = it::match("^//(\w+)(/.*)", $url)) ? "/www/$m[0].search.ch" . $m[1] : $GLOBALS['ULTRAHOME'] . $url, true);; |