Add urlencode version

1.9.x
jmontoyaa 10 years ago
parent 97ac0e86d6
commit cff0f0decf
  1. 6
      main/inc/lib/document.lib.php

@ -397,7 +397,11 @@ class DocumentManager
if ($fixLinksHttpToHttps) {
$content = file_get_contents($full_file_name);
$content = str_replace('http://', 'https://', $content);
$content = str_replace(
array('http%3A%2F%2F', 'http://'),
'https://',
$content
);
echo $content;
} else {
readfile($full_file_name);

Loading…
Cancel
Save