From 1cf95066461c58b9f7d6ca716e13e8fe24e6f1ef Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 19 Nov 2016 14:03:31 -0500 Subject: [PATCH] Overhauling proxy_url: use $shortpath for long URL in writemode --- mod/proxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/proxy.php b/mod/proxy.php index 4d53c9801c..f2a7c30eac 100644 --- a/mod/proxy.php +++ b/mod/proxy.php @@ -306,7 +306,7 @@ function proxy_url($url, $writemode = false, $size = '') { // Too long files aren't supported by Apache // Writemode in combination with long files shouldn't be possible if ((strlen($proxypath) > 250) AND $writemode) { - return hash('md5', $url); + return $shortpath; } elseif (strlen($proxypath) > 250) { return $a->get_baseurl() . '/proxy/' . $shortpath . '?url=' . urlencode($url); } elseif ($writemode) { -- 2.39.5