[prev in list] [next in list] [prev in thread] [next in thread]
List: kronolith
Subject: [kronolith] reminder.php and @localhost email problem
From: "W. Tasin" <tasin () fhm ! edu>
Date: 2004-03-30 10:54:58
Message-ID: 40695202.9050403 () fhm ! edu
[Download RAW message or body]
Hi all,
I tried to trace back the problem with reminder.php not getting the
default identity of a user.
The problem - in my case using preferences from sql backend - is the
character conversion call in Prefs_sql::_convertFromDriver($value)
respectively the last parameter inside String::convertCharset(...).
I'm using the german language in my horde/imp/kronolith installation, so
"Standardidentität" (i. e. "default identity") is used in
"horde_prefs"-database.
The conversion from the serialized string version
"....{s:2:"id";s:18:"Standardidentität";s:8:"fullname";s:8:"W.
Tasin";..." to the database entry works fine, but backwards from
database entry to serialized string doesn't work.
The resulting serialized string obtained from the sql database is:
"....{s:2:"id";s:18:"Standardidentität";s:8:"fullname";s:8:"W.
Tasin";..." and so the unserialize-call won't work anymore, because the
string now has the length 17.
My patch correct this behaviour, but I don't know if this should be done
in String::convertCharset(); I leave this decision to one of the horde
developer team...
HTH
Ciao
Walter
["prefs_sql.diff" (text/plain)]
--- framework/Prefs/Prefs/sql.php Fri Mar 12 17:10:27 2004
+++ framework/Prefs/Prefs/sql.php Tue Mar 30 09:38:41 2004
@@ -362,7 +362,7 @@
*/
function _convertFromDriver($value)
{
- return String::convertCharset($value, $this->_params['charset']);
+ return String::convertCharset($value, $this->_params['charset'], NLS::getCharset());
}
/**
--
Kronolith mailing list - Join the hunt: http://horde.org/bounties/#kronolith
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: kronolith-unsubscribe@lists.horde.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic