--- rep2ex-080917-0800/rep2/lib/ShowThreadK.php 2008-09-13 18:32:00.000000000 +0900 +++ rep2/lib/ShowThreadK.php 2009-02-12 02:32:58.000000000 +0900 @@ -223,7 +223,7 @@ } // 連鎖あぼーん - if ($_conf['ngaborn_chain'] && preg_match_all('/(?:>|>)([1-9][0-9\\-,]*)/', $msg, $matches)) { + if ($_conf['ngaborn_chain'] && preg_match_all("/{$this->anchor_prefix_abon}([1-9][0-9\\-,]*)/", $msg, $matches)) { $chain_nums = array_unique(array_map('intval', split('[-,]+', trim(implode(',', $matches[1]), '-,')))); if (array_intersect($chain_nums, $this->_aborn_nums)) { if ($_conf['ngaborn_chain'] == 1) { @@ -546,7 +546,7 @@ } // 数字を引用レスポップアップリンク化 - $name = preg_replace_callback('/^( ?(?:>|>)* ?)?([1-9]\\d{0,3})(?=\\D|$)/', + $name = preg_replace_callback("/^( ?{$this->anchor_prefix})?({$this->anchor_num})(?=\\D|$)/", array($this, 'quote_res_callback'), $name, 1); if ($trip) { @@ -601,7 +601,7 @@ $msg = preg_replace('/ *<[^>]*$/', '', $msg); // >>1, >1, >1, >>1を引用レスポップアップリンク化 - $msg = preg_replace_callback('/((?:>|>){1,2})([1-9](?:[0-9\\-,])*)+/', array($this, 'quote_res_callback'), $msg); + $msg = preg_replace_callback("/{$this->anchor_prefix}([1-9](?:[0-9\\-,])*)+/", array($this, 'quote_res_callback'), $msg); $msg .= "thread->host}&bbs={$this->thread->bbs}&key={$this->thread->key}&ls={$mynum}&k_continue=1&offline=1{$_conf['k_at_a']}\"{$this->respopup_at}{$this->target_at}>略"; return $msg; @@ -793,6 +793,10 @@ if ($appointed_num == '-') { return $s[0]; } + if (preg_match("/\D/",$appointed_num)) { + $appointed_num=preg_replace("/\D+/","-",$appointed_num); + return $this->quote_res_range_callback(array($full,$qsign, $appointed_num)); + } $qnum = intval($appointed_num); if ($qnum < 1 || $qnum > $this->thread->rescount) { return $s[0];