Lack of interest proxyUrlFormat - add urldecoded variable

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Mayhem30

Member
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.
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
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom