cvs: pearweb /public_html account-edit.php /sql users.sql
| From: | Martin Jansen | Date: | Tue, 25 Oct 2005 11:49:29 +0000 |
| Subject: | cvs: pearweb /public_html account-edit.php /sql users.sql | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-35842@lists.php.net to get a copy of this message | ||
mj Tue Oct 25 07:49:29 2005 EDT
Modified files:
/pearweb/public_html account-edit.php
/pearweb/sql users.sql
Log:
* strlen() returns an integer and not a string.
* Bump up the number of allowed characters in the userinfo field to 500.
http://cvs.php.net/diff.php/pearweb/public_html/account-edit.php?r1=1.47&r2=1.48&ty=u
Index: pearweb/public_html/account-edit.php
diff -u pearweb/public_html/account-edit.php:1.47 pearweb/public_html/account-edit.php:1.48
--- pearweb/public_html/account-edit.php:1.47 Mon Oct 24 21:13:00 2005
+++ pearweb/public_html/account-edit.php Tue Oct 25 07:49:26 2005
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: account-edit.php,v 1.47 2005/10/25 01:13:00 dufuz Exp $
+ $Id: account-edit.php,v 1.48 2005/10/25 11:49:26 mj Exp $
*/
auth_require();
@@ -82,8 +82,8 @@
$user_data_post[$k] = htmlspecialchars($_POST[$k]);
- if ($k == 'userinfo' && strlen($user_data_post[$k]) >
'255') {
- report_error('User information exceeds the allowed length (255 chars).');
+ if ($k == 'userinfo' && strlen($user_data_post[$k]) > 500) {
+ report_error('User information exceeds the allowed length of 500
characters.');
response_footer();
exit();
}
http://cvs.php.net/diff.php/pearweb/sql/users.sql?r1=1.14&r2=1.15&ty=u
Index: pearweb/sql/users.sql
diff -u pearweb/sql/users.sql:1.14 pearweb/sql/users.sql:1.15
--- pearweb/sql/users.sql:1.14 Mon Oct 24 21:13:01 2005
+++ pearweb/sql/users.sql Tue Oct 25 07:49:29 2005
@@ -10,7 +10,7 @@
showemail tinyint(1) default NULL,
registered tinyint(1) default NULL,
admin tinyint(1) default NULL,
- userinfo varchar(255) default NULL,
+ userinfo text default NULL,
pgpkeyid varchar(20) default NULL,
pgpkey text,
wishlist varchar(255) NOT NULL default '',