diff options
author | Christian Helbling | 2014-09-15 11:42:48 +0200 |
---|---|---|
committer | Christian Helbling | 2014-09-15 11:42:48 +0200 |
commit | 7b80022d7ec241f522d505fa790b955eb841f1a2 (patch) | |
tree | 670fdbdc5b36027b629b71fe8d40f75f4c939f14 /itjs.class | |
parent | 32a2a648a65302e09a03fa8c84d22dc687c9c52e (diff) | |
download | itools-7b80022d7ec241f522d505fa790b955eb841f1a2.tar.gz itools-7b80022d7ec241f522d505fa790b955eb841f1a2.tar.bz2 itools-7b80022d7ec241f522d505fa790b955eb841f1a2.zip |
fix crcurl for doc/appcache.php - path was wrong
Diffstat (limited to 'itjs.class')
-rw-r--r-- | itjs.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -199,7 +199,7 @@ function crcurl($url) if (it::match('^http', $url)) # remote url, must fetch to crc $fn = it_url::get_cache(array('url' => $url, 'maxage' => 3600)); else - $fn = ($path = it::match("^//lib(/.*)", $url)) ? "/www/lib.search.ch" . $path : $GLOBALS['ULTRAHOME'] . $url; + $fn = ($m = it::match("^//(\w+)(/.*)", $url)) ? "/www/$m[0].search.ch" . $m[1] : $GLOBALS['ULTRAHOME'] . $url; return it::match('#', $url) ? U(trim($url, "#")) : U($url, array('c' => self::checksum([$fn]))); } |