diff options
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]))); } |