1

주제: 태터툴즈,텍스큐브 소스중 comment 버그관련

태터툴즈,텍스큐브 소스중 comment 버그관련 수정요청드립니다.

외부 방문자들이 comment 달때 패스워드 없이도 입력이 가능합니다.[입력필드-이름, 패스워드,본문]
blog/comment/add/item.php 소스를 보니 패스워드에 대한 처리가 되어 있지 않네요.


[소스 원본]
if(!doesHaveMembership()&&!doesHaveOwnership()&&$userName==''){
    echo '<?xml version="1.0" encoding="utf-8"?><response><error>2</error><description><![CDATA[',_text('이름을 입력해 주십시오.'),']]></description></response>';
}elseif($userComment==''){
    echo '<?xml version="1.0" encoding="utf-8"?><response><error>2</error><description><![CDATA[',_text('본문을 입력해 주십시오.'),']]></description></response>';
}else{


위와 같이 외부 방문자들이 패스워드 없이도 글을 등록할 수 잇게 되어 있네요...
이부분을 아래와 같이 수정되면 제대로 작동합니다.


[수정]
if(!doesHaveMembership()&&!doesHaveOwnership()&&$userName==''){
    echo '<?xml version="1.0" encoding="utf-8"?><response><error>2</error><description><![CDATA[',_text('이름을 입력해 주십시오.'),']]></description></response>';
}elseif(!doesHaveMembership()&&!doesHaveOwnership()&&$userPassword==''){
    echo '<?xml version="1.0" encoding="utf-8"?><response><error>2</error><description><![CDATA[',_text('패스워드을 입력해 주십시오.'),']]></description></response>';
}elseif($userComment==''){
    echo '<?xml version="1.0" encoding="utf-8"?><response><error>2</error><description><![CDATA[',_text('본문을 입력해 주십시오.'),']]></description></response>';
}


배포시 이 부분 수정되어 배포되었으면 합니다. 이 부분말고도 쫌 더 있는것 같은데..ㅎㅎㅎㅎㅎ
그럼 수고하세요....

2

답글: 태터툴즈,텍스큐브 소스중 comment 버그관련

패스워드 없이 글 입력이 가능한 것은 의도된 것입니다^^ 그것도 귀찮아 하시는 분들이 있거든요. 단, 패스워드를 입력하지 않으면 관리자 이외에는 수정할 수가 없습니다. smile

"Everything looks different on the other side."

-Ian Malcomm, from Michael Crichton's 'The Jurassic Park'

3

답글: 태터툴즈,텍스큐브 소스중 comment 버그관련

근데 또 문제는 관리자가 수정하면 관리자 이름으로 변경되지 않나요?;;;;

하늘은 스스로 삽질하는 자를 삽으로 팬다