forked from GNUsocial/gnu-social
Might as well put a $limit on preg_replace here
Since there will (should) never be more than one ^http in that string anyway.
This commit is contained in:
parent
5b2b969a77
commit
c1f22f106b
@ -1154,7 +1154,7 @@ class Action extends HTMLOutputter // lawsuit
|
||||
$url = $sslimage;
|
||||
} else if (preg_match('#^http://i.creativecommons.org/#', $image)) {
|
||||
// CC support HTTPS on their images
|
||||
$url = preg_replace('/^http/', 'https', $image);
|
||||
$url = preg_replace('/^http/', 'https', $image, 1);
|
||||
} else {
|
||||
// Better to show mixed content than no content
|
||||
$url = $image;
|
||||
|
Loading…
Reference in New Issue
Block a user