From b12bb0b85dfa24b5b2d2032a5d506ab3bf0be44b Mon Sep 17 00:00:00 2001
From: Sascha Grossenbacher <saschagros@gmail.com>
Date: Thu, 14 Apr 2011 11:22:24 +0200
Subject: [PATCH] Issue #464290 by Berdir: Fixed fixed recipients textfield maxlength.

---
 privatemsg.pages.inc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/privatemsg.pages.inc b/privatemsg.pages.inc
index 616d367..1980e9f 100644
--- a/privatemsg.pages.inc
+++ b/privatemsg.pages.inc
@@ -257,7 +257,9 @@ function privatemsg_new(&$form_state, $recipients = '', $subject = '') {
     '#weight'             => -10,
     '#size'               => 50,
     '#autocomplete_path'  => 'messages/autocomplete',
-    // Do not hardcode #maxlength, make it configurable by number of recipients, not their name length.
+    // Disable #maxlength, make it configurable by number of recipients, not
+    // their name length.
+    '#maxlength'          => 0,
   );
   $form['subject'] = array(
     '#type'               => 'textfield',
-- 
1.7.4.1

