[textpattern commit] r2974 - development/4.0/textpattern/include

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 15, 2008, 4:36:33 PM9/15/08
to txp...@googlegroups.com
Author: ru...@vanmelick.com
Date: Mon Sep 15 13:35:29 2008
New Revision: 2974

Modified:
development/4.0/textpattern/include/txp_admin.php

Log:
fix [2973]. As it turns out, wet was way ahead of me. That
mbstring.func_overload stuff is nasty.

Modified: development/4.0/textpattern/include/txp_admin.php
==============================================================================
--- development/4.0/textpattern/include/txp_admin.php (original)
+++ development/4.0/textpattern/include/txp_admin.php Mon Sep 15 13:35:29
2008
@@ -191,9 +191,11 @@
require_privs('admin.edit');

extract(doSlash(psa(array('privs', 'name', 'email', 'RealName'))));
- $privs = assert_int($privs);

- if ($name and strlen($name) <= 64 and is_valid_email($email))
+ $privs = assert_int($privs);
+ $length = function_exists('mb_strlen') ? mb_strlen($name, '8bit') :
strlen($name);
+
+ if ($name and $length <= 64 and is_valid_email($email))
{
$password = doSlash(generate_password(6));
$nonce = doSlash(md5(uniqid(mt_rand(), TRUE)));

Reply all
Reply to author
Forward
0 new messages