From 630de24f7bf98bba7d911c59b125b7a76131db04 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 18 May 2009 07:53:43 +0000 Subject: [PATCH] =?UTF-8?q?#17198458=20=EB=A9=94=EC=9D=BC=EB=B0=9C?= =?UTF-8?q?=EC=86=A1=EC=8B=9C=20XE=EC=9D=98=20=EC=B2=A8=EB=B6=80=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=EC=97=90=20=EB=8C=80=ED=95=B4=EC=84=9C=20=EC=A0=88?= =?UTF-8?q?=EB=8C=80=EA=B2=BD=EB=A1=9C=EB=A1=9C=20=EB=82=B4=EC=9A=A9?= =?UTF-8?q?=EC=9D=84=20=EC=88=98=EC=A0=95=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=ED=95=98=EC=97=AC=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6327 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/mail/Mail.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/classes/mail/Mail.class.php b/classes/mail/Mail.class.php index 9c201559c..761e7bc1f 100644 --- a/classes/mail/Mail.class.php +++ b/classes/mail/Mail.class.php @@ -45,9 +45,14 @@ } function setContent($content) { + $content = preg_replace_callback('/]+)>/i',array($this,'replaceResourceRealPath'), $content); $this->content = $content; } + function replaceResourceRealPath($matches) { + return preg_replace('/src=(["\']?)files/i','src=$1'.Context::getRequestUri().'files', $matches[0]); + } + function getPlainContent() { return chunk_split(base64_encode(str_replace(array("<",">","&"), array("<",">","&"), $this->content))); }