Fixed small issue
authorMarcel Werk <burntime@woltlab.com>
Mon, 16 Sep 2013 17:36:21 +0000 (19:36 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 16 Sep 2013 17:36:21 +0000 (19:36 +0200)
wcfsetup/install/files/lib/form/MessageForm.class.php

index 4cc0ff81f2c24056bcd44293b83328ba30bab846..e2ec358c5b2b803bdeef5052817b602f1f201459 100644 (file)
@@ -231,7 +231,7 @@ abstract class MessageForm extends RecaptchaForm {
                }
                
                if (mb_strlen($this->subject) > 255) {
-                       throw new UserInputException('subject', 'tooLong');
+                       $this->subject = mb_substr($this->subject, 0, 255);
                }
                
                // search for censored words