summaryrefslogtreecommitdiff
path: root/actions/userauthorization.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-02-07 19:33:18 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-02-09 12:45:03 -0500
commit09d8a73eceba11ed021a697b3b8e283c5bc2dc6a (patch)
tree0a074851d1ae68b628c9fbbe9232af83cd52b0bf /actions/userauthorization.php
parent37a1a6b9d8c50c490d4b7fe42b40e2af7d8c00b3 (diff)
trac #1155 ++ replace strlen with mb_strlen for all utf8 strings.
Diffstat (limited to 'actions/userauthorization.php')
-rw-r--r--actions/userauthorization.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index 58fc96c0e..7455a41a6 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -469,19 +469,19 @@ class UserauthorizationAction extends Action
}
# optional stuff
$fullname = $req->get_parameter('omb_listenee_fullname');
- if ($fullname && strlen($fullname) > 255) {
+ if ($fullname && mb_strlen($fullname) > 255) {
throw new OAuthException("Full name '$fullname' too long.");
}
$homepage = $req->get_parameter('omb_listenee_homepage');
- if ($homepage && (!common_valid_http_url($homepage) || strlen($homepage) > 255)) {
+ if ($homepage && (!common_valid_http_url($homepage) || mb_strlen($homepage) > 255)) {
throw new OAuthException("Invalid homepage '$homepage'");
}
$bio = $req->get_parameter('omb_listenee_bio');
- if ($bio && strlen($bio) > 140) {
+ if ($bio && mb_strlen($bio) > 140) {
throw new OAuthException("Bio too long '$bio'");
}
$location = $req->get_parameter('omb_listenee_location');
- if ($location && strlen($location) > 255) {
+ if ($location && mb_strlen($location) > 255) {
throw new OAuthException("Location too long '$location'");
}
$avatar = $req->get_parameter('omb_listenee_avatar');