From af799b2a184864d6adb6bd224f57cd58bf78154b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 11 Aug 2013 18:23:24 +0200 Subject: Allow more chars in apikey comment "fb-client user@host" will be used by fb-client so this should work... Signed-off-by: Florian Pritz --- application/controllers/user.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/user.php b/application/controllers/user.php index 009188648..f1dbe5c31 100644 --- a/application/controllers/user.php +++ b/application/controllers/user.php @@ -92,9 +92,9 @@ class User extends CI_Controller { $comment = $this->input->post("comment"); - if (strlen($comment) > 255 || !preg_match("/^[a-zA-Z0-9 ]*$/", $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 and space allowed"); + show_error("Comment invalid. Only 255 chars of a-zA-Z0-9, @, -, space and comma allowed"); } $key = random_alphanum(32); -- cgit v1.2.3-24-g4f1b