summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-08-11 18:23:24 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-08-11 18:23:24 +0200
commitaf799b2a184864d6adb6bd224f57cd58bf78154b (patch)
tree47179dcd8f631412ae8ded24a3d3a76d164dfbb2
parent84f7c3e56fd1c5c4873af34379c33942ad1a9370 (diff)
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 <bluewind@xinu.at>
-rw-r--r--application/controllers/user.php4
1 files 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);