mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Handle on-site images better
This commit is contained in:
@@ -340,6 +340,13 @@ class e107PDF extends TCPDF
|
|||||||
*/
|
*/
|
||||||
function filePathModify($fileName, $source = '')
|
function filePathModify($fileName, $source = '')
|
||||||
{
|
{
|
||||||
|
// This handles the fact that local images use absolute links in web pages
|
||||||
|
if (strpos($fileName, SITEURL) === 0)
|
||||||
|
{
|
||||||
|
$fileName = e_BASE.str_replace(SITEURL, '', $fileName);
|
||||||
|
return $fileName;
|
||||||
|
}
|
||||||
|
|
||||||
// Leave off-site links unchanged
|
// Leave off-site links unchanged
|
||||||
if (strpos($fileName, 'http://') === 0) return $fileName;
|
if (strpos($fileName, 'http://') === 0) return $fileName;
|
||||||
if (strpos($fileName, 'https://') === 0) return $fileName;
|
if (strpos($fileName, 'https://') === 0) return $fileName;
|
||||||
|
Reference in New Issue
Block a user