diff --git a/bbs/member_confirm.php b/bbs/member_confirm.php index bdacb1d9b..d55c6d14a 100644 --- a/bbs/member_confirm.php +++ b/bbs/member_confirm.php @@ -14,6 +14,15 @@ else $g5['title'] = '회원 비밀번호 확인'; include_once('./_head.sub.php'); +$url = $_GET['url']; + +$p = parse_url($url); +if ((isset($p['scheme']) && $p['scheme']) || (isset($p['host']) && $p['host'])) { + //print_r2($p); + if ($p['host'].(isset($p['port']) ? ':'.$p['port'] : '') != $_SERVER['HTTP_HOST']) + alert('url에 타 도메인을 지정할 수 없습니다.'); +} + include_once($member_skin_path.'/member_confirm.skin.php'); include_once('./_tail.sub.php'); diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index 3f71de35a..fcc9b7cc3 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -100,6 +100,8 @@ function get_view_thumbnail($contents, $thumb_width=0) $width = $m[1]; preg_match("/height:\s*(\d+)px/", $style, $m); $height = $m[1]; + preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $img, $m); + $alt = get_text($m[1]); // 이미지 path 구함 $p = parse_url($src); @@ -165,8 +167,6 @@ function get_view_thumbnail($contents, $thumb_width=0) else $thumb_file = $filename; - preg_match("/alt=[\"\']?([^\"\']*)[\"\']?/", $img_tag, $malt); - $alt = get_text($malt[1]); if ($width) { $thumb_tag = ''.$alt.''; } else {