@@ 405-408 (lines=4) @@ | ||
402 | // Create url for homepage and blog |
|
403 | if($obj->homepage && strncasecmp('http://', $obj->homepage, 7) !== 0 && strncasecmp('https://', $obj->homepage, 8) !== 0) $obj->homepage = 'http://'.$obj->homepage; |
|
404 | // Check user ID |
|
405 | if(!preg_match('/^[a-z]+[\w-]*[a-z0-9_]+$/i', $obj->user_id)) |
|
406 | { |
|
407 | $obj->user_id = preg_replace('/[^a-z0-9_-]+/i', '', $obj->user_id); |
|
408 | } |
|
409 | if(!preg_match('/^[a-z]+[\w-]*[a-z0-9_]+$/i', $obj->user_id)) |
|
410 | { |
|
411 | $obj->user_id = 't' . $obj->member_srl; |
|
@@ 784-787 (lines=4) @@ | ||
781 | $obj->allow_trackback = base64_decode($xmlDoc->post->allow_trackback->body)!='N'?'Y':'N'; |
|
782 | $obj->notify_message = base64_decode($xmlDoc->post->is_notice->body); |
|
783 | // Check user ID |
|
784 | if(!preg_match('/^[a-z]+[\w-]*[a-z0-9_]+$/i', $obj->user_id)) |
|
785 | { |
|
786 | $obj->user_id = preg_replace('/[^a-z0-9_-]+/i', '', $obj->user_id); |
|
787 | } |
|
788 | if(!preg_match('/^[a-z]+[\w-]*[a-z0-9_]+$/i', $obj->user_id)) |
|
789 | { |
|
790 | $obj->user_id = 't' . $obj->member_srl; |
|
@@ 989-992 (lines=4) @@ | ||
986 | $obj->status = base64_decode($xmlDoc->comment->status->body)==''?'1':base64_decode($xmlDoc->comment->status->body); |
|
987 | $obj->list_order = $obj->comment_srl*-1; |
|
988 | // Check user ID |
|
989 | if(!preg_match('/^[a-z]+[\w-]*[a-z0-9_]+$/i', $obj->user_id)) |
|
990 | { |
|
991 | $obj->user_id = preg_replace('/[^a-z0-9_-]+/i', '', $obj->user_id); |
|
992 | } |
|
993 | if(!preg_match('/^[a-z]+[\w-]*[a-z0-9_]+$/i', $obj->user_id)) |
|
994 | { |
|
995 | $obj->user_id = 't' . $obj->member_srl; |