aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorHabeas Codice <habeascodice@federated.social>2015-01-24 22:14:35 -0800
committerHabeas Codice <habeascodice@federated.social>2015-01-24 22:14:35 -0800
commitf9aaa03036b11b00654787475c7ee05c4517b78e (patch)
treeb987e2bcd87bdc52ce6d9e37db1d6cf94d882863 /include/text.php
parent1d6aead325aa052fbacaad24efdbc784f1ee9407 (diff)
parentdfc6126a65443567c74bb4568e0a32e8248eda80 (diff)
downloadvolse-hubzilla-f9aaa03036b11b00654787475c7ee05c4517b78e.tar.gz
volse-hubzilla-f9aaa03036b11b00654787475c7ee05c4517b78e.tar.bz2
volse-hubzilla-f9aaa03036b11b00654787475c7ee05c4517b78e.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php
index b6e4abf24..47694a17c 100644
--- a/include/text.php
+++ b/include/text.php
@@ -898,7 +898,8 @@ function sslify($s) {
$cnt = preg_match_all("/\<(.*?)src=\"(http\:.*?)\"(.*?)\>/",$s,$matches,PREG_SET_ORDER);
if($cnt) {
foreach($matches as $match) {
- $s = str_replace($match[2],z_root() . '/sslify?f=&url=' . urlencode($match[2]),$s);
+ $filename = basename( parse_url($match[2],PHP_URL_PATH) );
+ $s = str_replace($match[2],z_root() . '/sslify/' . $filename . '?f=&url=' . urlencode($match[2]),$s);
}
}
return $s;