From 7b80022d7ec241f522d505fa790b955eb841f1a2 Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Mon, 15 Sep 2014 11:42:48 +0200 Subject: fix crcurl for doc/appcache.php - path was wrong --- itjs.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]))); } -- cgit v1.2.3