We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit c1f22f10 authored by mattl's avatar mattl

Might as well put a $limit on preg_replace here

Since there will (should) never be more than one ^http in that string anyway.
parent 5b2b969a
...@@ -1154,7 +1154,7 @@ class Action extends HTMLOutputter // lawsuit ...@@ -1154,7 +1154,7 @@ class Action extends HTMLOutputter // lawsuit
$url = $sslimage; $url = $sslimage;
} else if (preg_match('#^http://i.creativecommons.org/#', $image)) { } else if (preg_match('#^http://i.creativecommons.org/#', $image)) {
// CC support HTTPS on their images // CC support HTTPS on their images
$url = preg_replace('/^http/', 'https', $image); $url = preg_replace('/^http/', 'https', $image, 1);
} else { } else {
// Better to show mixed content than no content // Better to show mixed content than no content
$url = $image; $url = $image;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment