mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 16:19:58 +09:00
템플릿 핸들러 참고해서 핸들러에서 경로 바꾸는 이미지만 경로 수정하게 수정.(이전에 템플릿 핸들러를 수정했어야 하는 것은 아닌지.... 아무튼.. 수정) git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5957 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0919ae7e03
commit
2ab2bce53a
3 changed files with 4 additions and 4 deletions
|
|
@ -1362,10 +1362,10 @@
|
||||||
$content = preg_replace_callback('!<style(.*?)<\/style>!is', array($this,'moveStyleToHeader'), $content);
|
$content = preg_replace_callback('!<style(.*?)<\/style>!is', array($this,'moveStyleToHeader'), $content);
|
||||||
|
|
||||||
// <img|br> 코드 변환
|
// <img|br> 코드 변환
|
||||||
$content = preg_replace('/<(img|br)([^>\/]*)(\/>|>)/i','<$1$2 />', $content);
|
$content = preg_replace('/<(img|br)([^>]*)(\/>|>)/i','<$1$2 />', $content);
|
||||||
|
|
||||||
// templateHandler의 이미지 경로로 인하여 생기는 절대경로 이미지등의 경로 중복 처리
|
// templateHandler의 이미지 경로로 인하여 생기는 절대경로 이미지등의 경로 중복 처리
|
||||||
$content = preg_replace('/src=(["|\']?)http:\/\/([^ ]+)http:\/\//is','src=$1http://', $content);
|
$content = preg_replace('/<(img|input)([^>]*)src=(["|\']?)http:\/\/([^ ]+)http:\/\//is','<$1$2src=$3http://', $content);
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -562,7 +562,7 @@
|
||||||
$tag = strtolower(trim($matches[1]));
|
$tag = strtolower(trim($matches[1]));
|
||||||
|
|
||||||
$buff = trim(preg_replace('/(\/>|>)/','/>',$matches[0]));
|
$buff = trim(preg_replace('/(\/>|>)/','/>',$matches[0]));
|
||||||
$buff = str_replace(array('&','&'),array('&','&'),$buff);
|
$buff = str_replace(array('&','&'),array('&','&'),$buff);
|
||||||
$buff = preg_replace_callback('/([^=^"^ ]*)=([^ ^>]*)/i', fixQuotation, $buff);
|
$buff = preg_replace_callback('/([^=^"^ ]*)=([^ ^>]*)/i', fixQuotation, $buff);
|
||||||
|
|
||||||
$oXmlParser = new XmlParser();
|
$oXmlParser = new XmlParser();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module>
|
<module>
|
||||||
<grants />
|
<grants />
|
||||||
<permissions />
|
<permissions />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue