Overhauling proxy_url: use $shortpath for long URL in writemode
This commit is contained in:
parent
a6bdb2c34a
commit
1cf9506646
1 changed files with 1 additions and 1 deletions
|
@ -306,7 +306,7 @@ function proxy_url($url, $writemode = false, $size = '') {
|
||||||
// Too long files aren't supported by Apache
|
// Too long files aren't supported by Apache
|
||||||
// Writemode in combination with long files shouldn't be possible
|
// Writemode in combination with long files shouldn't be possible
|
||||||
if ((strlen($proxypath) > 250) AND $writemode) {
|
if ((strlen($proxypath) > 250) AND $writemode) {
|
||||||
return hash('md5', $url);
|
return $shortpath;
|
||||||
} elseif (strlen($proxypath) > 250) {
|
} elseif (strlen($proxypath) > 250) {
|
||||||
return $a->get_baseurl() . '/proxy/' . $shortpath . '?url=' . urlencode($url);
|
return $a->get_baseurl() . '/proxy/' . $shortpath . '?url=' . urlencode($url);
|
||||||
} elseif ($writemode) {
|
} elseif ($writemode) {
|
||||||
|
|
Loading…
Reference in a new issue