summaryrefslogtreecommitdiff
path: root/classes/diskcache.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-02 08:16:41 +0300
committerAndrew Dolgov <[email protected]>2021-03-02 08:16:41 +0300
commit70adfd4a742775f492bbf09afad2eebb67d4a150 (patch)
tree9dd347bb9dfd811ecdc26a7fe0811057a43e3189 /classes/diskcache.php
parent6f835ded780cdc9e1a663667dd5221a0cc835571 (diff)
* sanitize: never rewrite relative links to our own prefix
* use Config::get_self_url() instead of get_self_url_prefix() in a bunch of places
Diffstat (limited to 'classes/diskcache.php')
-rw-r--r--classes/diskcache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/diskcache.php b/classes/diskcache.php
index 9c594acc5..d7ea26d3b 100644
--- a/classes/diskcache.php
+++ b/classes/diskcache.php
@@ -273,7 +273,7 @@ class DiskCache {
}
public function get_url($filename) {
- return get_self_url_prefix() . "/public.php?op=cached&file=" . basename($this->dir) . "/" . basename($filename);
+ return Config::get_self_url() . "/public.php?op=cached&file=" . basename($this->dir) . "/" . basename($filename);
}
// check for locally cached (media) URLs and rewrite to local versions