af_redditimgur: add workaround for imgur switching to protocol-less links for images
This commit is contained in:
parent
0a08d1b246
commit
e44ea76268
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Af_RedditImgur extends Plugin {
|
||||||
$aentries = $axpath->query('(//img[@src])');
|
$aentries = $axpath->query('(//img[@src])');
|
||||||
|
|
||||||
foreach ($aentries as $aentry) {
|
foreach ($aentries as $aentry) {
|
||||||
if (preg_match("/^http:\/\/i.imgur.com\/$token\./", $aentry->getAttribute("src"))) {
|
if (preg_match("/\/\/i.imgur.com\/$token\./", $aentry->getAttribute("src"))) {
|
||||||
$img = $doc->createElement('img');
|
$img = $doc->createElement('img');
|
||||||
$img->setAttribute("src", $aentry->getAttribute("src"));
|
$img->setAttribute("src", $aentry->getAttribute("src"));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue