News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

2.0.14 Image proxy does not process 'some' images

Started by jorgerll, May 26, 2017, 12:38:54 AM

Previous topic - Next topic

jorgerll

I have the same problem, I made the code change indicating Sleepy without result.
https://www.elseptimoarte.net/foro/index.php/topic,29387.msg857509.html#msg857509


Thanks

Illori

topic split, please open new topics instead of posting in someone elses topic.


d3vcho

Have you tried with CTRL+F5? Maybe it's a cache issue
"Greeting Death as an old friend, they departed this life as equals"


jorgerll

Would it be possible to include somewhere a str_replace('http://www.elsep','https://www.elsep','$post'), to prevent that the internal urls pass through the proxy?

Colin

Quote from: jorgerll on May 27, 2017, 01:52:32 AM
Would it be possible to include somewhere a str_replace('http://www.elsep','https://www.elsep','$post'), to prevent that the internal urls pass through the proxy?

Didn't even think of a case like that. Yeah that sounds like a good idea.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

jorgerll

#7
It works!!
I have included it in subs.php Line 1373 and 1391
After:
$data = strtr($data, array('<br>' => '')); if (strpos($data, 'http://') !== 0 && strpos($data, 'https://') !== 0) $data = 'http://' . $data;

$data = str_replace("http://www.xxxx", "https://www.xxxx", $data);


I will do the same with internal links  :D

[edit] formatting removed so text can be read -Illori

Advertisement: