summaryrefslogtreecommitdiff
path: root/actions/userauthorization.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-02-07 19:33:18 +0000
committerRobin Millette <millette@controlyourself.ca>2009-02-07 19:33:18 +0000
commitc2905085c1b37998e3bfbdb7dc6ab2c78ef6d3c9 (patch)
treef3ed4948e1b0dcf000756d09e08979c188eef2b7 /actions/userauthorization.php
parent08db50b24eaf9e6e5f651448c394f1f50dd2409b (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');