diff --git a/adm/admin.tail.php b/adm/admin.tail.php
index 0d315f517..55ba62359 100644
--- a/adm/admin.tail.php
+++ b/adm/admin.tail.php
@@ -14,7 +14,7 @@ if (!defined('_GNUBOARD_')) exit;
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/bbs/write_comment_update.php b/bbs/write_comment_update.php
index dddbff657..78b49cdb0 100644
--- a/bbs/write_comment_update.php
+++ b/bbs/write_comment_update.php
@@ -218,20 +218,17 @@ if ($w == 'c') // 댓글 입력
// 최고관리자에게 보내는 메일
if ($config['cf_email_wr_super_admin']) $array_email[] = $super_admin['mb_email'];
- // 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
- if (strstr($wr['wr_option'], 'mail') && $wr['wr_email']) {
- // 원글 메일발송에 체크가 되어 있다면
- if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
+ // 원글게시자에게 보내는 메일
+ if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
- // 댓글 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
- if ($config['cf_email_wr_comment_all']) {
- $sql = " select distinct wr_email from {$write_table}
- where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
- and wr_parent = '$wr_id' ";
- $result = sql_query($sql);
- while ($row=sql_fetch_array($result))
- $array_email[] = $row['wr_email'];
- }
+ // 댓글 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
+ if ($config['cf_email_wr_comment_all']) {
+ $sql = " select distinct wr_email from {$write_table}
+ where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
+ and wr_parent = '$wr_id' ";
+ $result = sql_query($sql);
+ while ($row=sql_fetch_array($result))
+ $array_email[] = $row['wr_email'];
}
// 중복된 메일 주소는 제거
diff --git a/bbs/write_update.php b/bbs/write_update.php
index 9ac58e347..0b71d3306 100644
--- a/bbs/write_update.php
+++ b/bbs/write_update.php
@@ -604,22 +604,18 @@ if (!($w == 'u' || $w == 'cu') && $config['cf_email_use'] && $board['bo_use_emai
// 최고관리자에게 보내는 메일
if ($config['cf_email_wr_super_admin']) $array_email[] = $super_admin['mb_email'];
- // 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
- if (strstr($wr['wr_option'], 'mail') && $wr['wr_email']) {
- // 원글 메일발송에 체크가 되어 있다면
- if ($config['cf_email_wr_write']) $array_email[] = $wr['wr_email'];
+ // 원글게시자에게 보내는 메일
+ if ($config['cf_email_wr_write']) {
+ if($w == '')
+ $wr['wr_email'] = $wr_email;
- // 코멘트 쓴 모든이에게 메일 발송이 되어 있다면 (자신에게는 발송하지 않는다)
- if ($config['cf_email_wr_comment_all']) {
- $sql = " select distinct wr_email from {$write_table}
- where wr_email not in ( '{$wr['wr_email']}', '{$member['mb_email']}', '' )
- and wr_parent = '{$wr_id}' ";
- $result = sql_query($sql);
- while ($row=sql_fetch_array($result))
- $array_email[] = $row['wr_email'];
- }
+ $array_email[] = $wr['wr_email'];
}
+ // 옵션에 메일받기가 체크되어 있고, 게시자의 메일이 있다면
+ if (strstr($wr['wr_option'], 'mail') && $wr['wr_email'])
+ $array_email[] = $wr['wr_email'];
+
// 중복된 메일 주소는 제거
$unique_email = array_unique($array_email);
$unique_email = array_values($unique_email);
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 = '
';
} else {