Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-07-29 14:53:08 +0300
committerMichal Čihař <michal@cihar.com>2016-07-29 14:54:04 +0300
commitc328697e39e56957d66e75de62ce610a90259e76 (patch)
treee15e380dfc4a8210fa4e795ac7b14830e02ef620 /examples
parent43cfaeeade02308994a4bfcb0a09edb7acb5ac17 (diff)
Do not use mb_strlen result for string indexes
The string indexes are in bytes, while mb_strlen counts chars. Issue #12397 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/openid.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/openid.php b/examples/openid.php
index 8ef34e9ee3..9fe7b90491 100644
--- a/examples/openid.php
+++ b/examples/openid.php
@@ -89,7 +89,7 @@ $base .= '://' . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'];
$realm = $base . '/';
$returnTo = $base . dirname($_SERVER['PHP_SELF']);
-if ($returnTo[mb_strlen($returnTo) - 1] != '/') {
+if ($returnTo[strlen($returnTo) - 1] != '/') {
$returnTo .= '/';
}
$returnTo .= 'openid.php';