<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - 1.7 특정 태그 주소로 접속시 글이 안나오는 문제]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=5759&amp;type=atom"/>
	<updated>2008-06-09T16:33:50Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=5759</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 1.7 특정 태그 주소로 접속시 글이 안나오는 문제]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=27820#p27820"/>
			<content type="html"><![CDATA[<p>버그군요. (그것도 골치가 아픈 종류네요 T_T)</p><p><a href="http://dev.textcube.org/ticket/1005">1005</a>번 티켓으로 등록하였습니다.</p>]]></content>
			<author>
				<name><![CDATA[inureyes]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=2</uri>
			</author>
			<updated>2008-06-09T16:33:50Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=27820#p27820</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 1.7 특정 태그 주소로 접속시 글이 안나오는 문제]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=27810#p27810"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>lunamoth 작성:</cite><blockquote><p><a href="http://notice.textcube.org/ko/tag/1.7">http://notice.textcube.org/ko/tag/1.7</a> </p><p>위 주소로 접속해보니 글이 하나도 안나오는 문제가 있더군요.</p></blockquote></div><p>문제의 원인이 $suri[&#039;id&#039;]와 $suri[&#039;value&#039;]를 어떻게 결정하느냐에 따라 달라지네요.<br />위와 같이 &#039;1.7&#039;이나 &#039;999&#039;와 같은 숫자형 태그문자가 붙었을 경우 suri 체크에서 숫자냐 이것만 체크하다보니<br />결과 값이 전혀 다르게 나오게 되는 것 같습니다.<br />$suri[&#039;id&#039;]나 $suri[&#039;value&#039;]의 값을 숫자형으로만 체크하는 보다는 숫자형 체크와 태그 주소 형태를 &#039;문자&#039;, &#039;숫자&#039; 어떤 것으로 선택되었는지도 suri.php에서 확인을 해야 보다 정확성이 있을 듯 합니다. 비롯, 카테고리의 경우도 같은 맥락일듯 싶습니다. 숫자로 된 카테고리명이 있다면 아마도 이와 같은 현상이 일어나게 됩니다. </p><p>예) - suri.php<br /></p><div class="codebox"><pre><code>if (is_numeric($suri[&#039;value&#039;]) &amp;&amp; sloganTypeCheck($suri[&#039;directive&#039;])) {
    $suri[&#039;id&#039;] = $suri[&#039;value&#039;];
} else {
    $suri[&#039;value&#039;] = decodeURL(str_replace(&#039;index.php&#039;,&#039;&#039;,$suri[&#039;value&#039;]));
    if(is_numeric($isValue = strtok($suri[&#039;value&#039;],&#039;&amp;&#039;)) &amp;&amp; sloganTypeCheck($suri[&#039;directive&#039;])) $suri[&#039;id&#039;] = $isValue;
    unset($isValue);
}

function sloganTypeCheck($directive) {
    global $blog;
    if ($directive == &#039;/tag&#039;){
        if($blog[&#039;useSloganOnTag&#039;]) return false;
    } else if ($directive == &#039;/category&#039;){
        if($blog[&#039;useSloganOnCategory&#039;]) return false;
    }
    return true;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[jparker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=10</uri>
			</author>
			<updated>2008-06-09T16:19:27Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=27810#p27810</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[1.7 특정 태그 주소로 접속시 글이 안나오는 문제]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=27789#p27789"/>
			<content type="html"><![CDATA[<p><a href="http://notice.textcube.org/ko/tag/1.7">http://notice.textcube.org/ko/tag/1.7</a> </p><p>위 주소로 접속해보니 글이 하나도 안나오는 문제가 있더군요.</p>]]></content>
			<author>
				<name><![CDATA[lunamoth]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=56</uri>
			</author>
			<updated>2008-06-09T11:35:34Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=27789#p27789</id>
		</entry>
</feed>
