Could you please provide a variable with the URL decoded for "proxyUrlFormat"?
I would like to use Nginx instead of proxy.php to handle image proxy. I can't use "urlencoded" URL's as it throws a 500 internal server error.
Perhaps add something like "{nurl}" variable in : src/XF/Proxy/Linker.php?
I would like to use Nginx instead of proxy.php to handle image proxy. I can't use "urlencoded" URL's as it throws a 500 internal server error.
2018/02/22 10:21:51 [error] 82776#0: *1951 invalid URL prefix in "http%3A%2F%2Fi65.tinypic.com%2Frc524i.jpg"
Perhaps add something like "{nurl}" variable in : src/XF/Proxy/Linker.php?
Code:
$link = strtr($this->linkFormat, [
'{type}' => urlencode($type),
'{url}' => urlencode($url),
'{nurl}' => $url,
'{hash}' => urlencode($this->hash($url))
]);
Last edited:
Upvote
0