summaryrefslogtreecommitdiff
path: root/itjs.class
diff options
context:
space:
mode:
authorUrban Müller2026-01-22 16:33:42 +0100
committerUrban Müller2026-01-22 16:34:17 +0100
commit6729b9e7392da9ada6a7a9f2f81cc86ddc74f000 (patch)
tree546acebd6fd81cca609131f991e5fd9039850efd /itjs.class
parentcddd3d82295984828d2a22e0ec31b7b9cf856289 (diff)
downloaditools-6729b9e7392da9ada6a7a9f2f81cc86ddc74f000.tar.gz
itools-6729b9e7392da9ada6a7a9f2f81cc86ddc74f000.tar.bz2
itools-6729b9e7392da9ada6a7a9f2f81cc86ddc74f000.zip
check for uses of local file code path
Diffstat (limited to 'itjs.class')
-rw-r--r--itjs.class3
1 files changed, 3 insertions, 0 deletions
diff --git a/itjs.class b/itjs.class
index a333d21..6a59bbd 100644
--- a/itjs.class
+++ b/itjs.class
@@ -165,7 +165,10 @@ static function crcurl($url, $p = array())
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, 'id' => "itjs_crcurl") + $p), false);
else
+ {
+ it::error(['to' => "mueller", 'title' => "old code path still used with $url"]); # FIXME 2026-02 UM remove code path
list($fn, $short_expire) = array(($m = it::match("^//(\w+)(/.*)", $url)) ? "/www/$m[0].search.ch" . $m[1] : $GLOBALS['ULTRAHOME'] . "/doc$url", true);;
+ }
return it::match('#', $url) ? U(trim($url, "#")) : U($url, array('c' => self::checksum(array($fn), array('short_expire' => $short_expire))));
}