From 2e5f4af90d44b568cb98f221ad0a68667edd862c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 12 Aug 2013 18:05:10 +0200 Subject: apikeys: allow any chars in comment No real point in restricting those, just leads to people wanting to use special chars that don't work. Signed-off-by: Florian Pritz --- application/controllers/user.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'application/controllers') diff --git a/application/controllers/user.php b/application/controllers/user.php index f1dbe5c31..27e027ac7 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -92,9 +92,8 @@ class User extends CI_Controller { $comment = $this->input->post("comment"); - if (strlen($comment) > 255 || !preg_match("/^[a-zA-Z0-9 -@,]*$/", $comment)) { - // display better error for - show_error("Comment invalid. Only 255 chars of a-zA-Z0-9, @, -, space and comma allowed"); + if (strlen($comment) > 255) { + show_error("Comment may only be 255 chars long."); } $key = random_alphanum(32); -- cgit v1.2.3-24-g4f1b