mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
#18536201 : md5 password even for the case when manual_inserted is true
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7024 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3f691442ad
commit
da821fff66
1 changed files with 2 additions and 1 deletions
|
|
@ -96,6 +96,8 @@
|
|||
// document model 객체 생성
|
||||
$oDocumentModel = &getModel('document');
|
||||
|
||||
// even for manual_inserted if password exists, md5 it.
|
||||
if($obj->password) $obj->password = md5($obj->password);
|
||||
// 원본글을 가져옴
|
||||
if(!$manual_inserted) {
|
||||
$oDocument = $oDocumentModel->getDocument($document_srl);
|
||||
|
|
@ -103,7 +105,6 @@
|
|||
if($document_srl != $oDocument->document_srl) return new Object(-1,'msg_invalid_document');
|
||||
if($oDocument->isLocked()) return new Object(-1,'msg_invalid_request');
|
||||
|
||||
if($obj->password) $obj->password = md5($obj->password);
|
||||
if($obj->homepage && !preg_match('/^[a-z]+:\/\//i',$obj->homepage)) $obj->homepage = 'http://'.$obj->homepage;
|
||||
|
||||
// 로그인 된 회원일 경우 회원의 정보를 입력
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue