summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itjs.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs.class b/itjs.class
index 3d144d2..fb3ac13 100644
--- a/itjs.class
+++ b/itjs.class
@@ -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])));
}