]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newgroup.php
Return redirect code correctly as HTTP status, not a header. Fixes ticket #1371
[quix0rs-gnu-social.git] / actions / newgroup.php
index 42fd380dfe51ce2a2670474f8c5d9953739aa832..cbd8dfeec53ff46fc10ceddccbee5a1cc0825418 100644 (file)
@@ -142,13 +142,13 @@ class NewgroupAction extends Action
                                         array('http', 'https')))) {
             $this->showForm(_('Homepage is not a valid URL.'));
             return;
-        } else if (!is_null($fullname) && strlen($fullname) > 255) {
+        } else if (!is_null($fullname) && mb_strlen($fullname) > 255) {
             $this->showForm(_('Full name is too long (max 255 chars).'));
             return;
-        } else if (!is_null($description) && strlen($description) > 140) {
+        } else if (!is_null($description) && mb_strlen($description) > 140) {
             $this->showForm(_('description is too long (max 140 chars).'));
             return;
-        } else if (!is_null($location) && strlen($location) > 255) {
+        } else if (!is_null($location) && mb_strlen($location) > 255) {
             $this->showForm(_('Location is too long (max 255 chars).'));
             return;
         }