diff options
| author | Urban Müller | 2026-01-22 16:33:42 +0100 |
|---|---|---|
| committer | Urban Müller | 2026-01-22 16:34:17 +0100 |
| commit | 6729b9e7392da9ada6a7a9f2f81cc86ddc74f000 (patch) | |
| tree | 546acebd6fd81cca609131f991e5fd9039850efd /itjs.class | |
| parent | cddd3d82295984828d2a22e0ec31b7b9cf856289 (diff) | |
| download | itools-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.class | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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)))); } |