Index: temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollrating.php
===================================================================
--- temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollrating.php	(revision 834)
+++ temp/test-xoops.ec-cube.net/html/modules/xoopspoll/pollrating.php	(revision 836)
@@ -49,14 +49,17 @@
 	case 'rating':
 		$poll_id = $_POST['poll_id'];
-		$poll = new XoopsPoll($poll_id);
-		if ( $xoopsUser ) {
-			$uid = $xoopsUser->getVar("uid");
-		} else {
-			$uid = 0;
+		$arrErr = lfErrCheck($_POST);
+		if(count($arrErr) <= 0) {
+			$poll = new XoopsPoll($poll_id);
+			if ( $xoopsUser ) {
+				$uid = $xoopsUser->getVar("uid");
+			} else {
+				$uid = 0;
+			}
+			$poll->vote($option_id, xoops_getenv('REMOTE_ADDR'), $uid, $_POST['rating_id'], $_POST['comment']);
+			$poll->updateCount();
+			redirect_header(XOOPS_URL."/modules/xoopspoll/pollresults.php?poll_id=".$poll_id, 1, $msg);
+			exit();
 		}
-		$poll->vote($option_id, xoops_getenv('REMOTE_ADDR'), $uid, $_POST['rating_id'], $_POST['comment']);
-		$poll->updateCount();
-		redirect_header(XOOPS_URL."/modules/xoopspoll/pollresults.php?poll_id=".$poll_id, 1, $msg);
-		exit();
 		break;
 	default:
@@ -81,7 +84,23 @@
 $xoopsTpl->assign('poll_id', $poll_id);
 $xoopsTpl->assign('start', $start);
+$xoopsTpl->assign('arrErr', $arrErr);
 
 include XOOPS_ROOT_PATH.'/include/comment_view.php';
 
 include XOOPS_ROOT_PATH."/footer.php";
+
+//---------------------------------------------------------------------------------------------------
+
+function lfErrCheck($arrForm) {
+	
+	$body_len = 500;
+	
+	$arrErr = array();
+	
+	if(mb_strlen($arrForm['body']) > $title_len) {
+		$arrErr['title'] = " ¢¨ ÆâÍÆ¤Ï$body_lenÊ¸»ú°ÊÆâ¤ÇÆþÎÏ¤·¤Æ²¼¤µ¤¤¡£";
+	}
+	
+	return $arrErr;
+}
 ?>
