[Bbs2ch-cvs 67] CVS update: bbs2chreader/content/bbs2chreader

Back to archive index

flyson flyso****@users*****
2005年 12月 11日 (日) 01:52:40 JST


Index: bbs2chreader/content/bbs2chreader/post.js
diff -u bbs2chreader/content/bbs2chreader/post.js:1.1 bbs2chreader/content/bbs2chreader/post.js:1.2
--- bbs2chreader/content/bbs2chreader/post.js:1.1	Tue Sep 13 22:41:22 2005
+++ bbs2chreader/content/bbs2chreader/post.js	Sun Dec 11 01:52:40 2005
@@ -180,7 +180,8 @@
 
 			//本文の長さチェック
 		var checkMessage=this._escape(this.message).replace(/%[0-9a-fA-F]{2}/g,"x");
-		if(checkMessage.length > this.board.getSetting("BBS_MESSAGE_COUNT")){
+		var bbsMessageCount = this.board.getSetting("BBS_MESSAGE_COUNT");
+		if(bbsMessageCount && checkMessage.length > bbsMessageCount){
 			flag |= this.ERROR_MESSAGE_TOO_LONG;
 		}
 
@@ -191,13 +192,15 @@
 
 			//名前の長さチェック
 		var checkName=this._escape(this.name).replace(/%[0-9a-fA-F]{2}/g,"x");
-		if(checkName.length > this.board.getSetting("BBS_NAME_COUNT")){
+		var bbsNameCount = this.board.getSetting("BBS_NAME_COUNT");
+		if(bbsNameCount && checkName.length > bbsNameCount){
 			flag |= this.ERROR_NAME_TOO_LONG;
 		}
 
 			//メールの長さチェック
 		var checkMail = this._escape(this.mail).replace(/%[0-9a-fA-F]{2}/g,"x");
-		if(checkMail.length > this.board.getSetting("BBS_MAIL_COUNT")){
+		var bbsMailCount = this.board.getSetting("BBS_MAIL_COUNT");
+		if(bbsMailCount && checkMail.length > bbsMailCount){
 			flag |= this.ERROR_MAIL_TOO_LONG;
 		}
 


bbs2ch-cvs メーリングリストの案内
Back to archive index