mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
ereg를 모두 preg로 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3528 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3a6cb4f7f2
commit
502b5a7a88
32 changed files with 75 additions and 75 deletions
|
|
@ -85,7 +85,7 @@
|
|||
|
||||
function _replaceSrc($matches) {
|
||||
$href = $matches[4];
|
||||
if(eregi("^http", $href) || $href == '#' || eregi("javascript:",$href)) return $matches[0];
|
||||
if(preg_match("/^http/i", $href) || $href == '#' || preg_match("/javascript:/i",$href)) return $matches[0];
|
||||
|
||||
if(substr($href,0,1)=='/') $href = substr($href,1);
|
||||
$href = $this->target_path.$href;
|
||||
|
|
@ -96,7 +96,7 @@
|
|||
|
||||
function _replaceBackgroundUrl($matches) {
|
||||
$href = $matches[1];
|
||||
if(eregi("^http",$href) || $href == '#' || eregi("javascript:",$href)) return $matches[0];
|
||||
if(preg_match("/^http/i",$href) || $href == '#' || preg_match("/javascript:/i",$href)) return $matches[0];
|
||||
|
||||
if(substr($href,0,1)=='/') $href = substr($href,1);
|
||||
$href = $this->target_path.$href;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue