Quote:
Originally Posted by Ignicoccus
Thanks for this great mod !
I installed it yesterday and it ist working like a charm, except ...
Users with special characters in their username (e.g. 'A&J') get a "Unknown username" message when submitting a new link. I use the german translation.
How do I solve this ?
|
Thanks for reporting this - I'll check and give you a fix.
updated...
if you are comfortable editing the code, I think this should do the trick..
take a copy of includes/local_links_include.php and edit.
go to line 1670
Code:
function lookup_userids($usernames) {
global $vbulletin;
$ids = array();
foreach ($usernames as $k=>$v) {
$usernames[$k] = trim($vbulletin->db->escape_string($v));
$ids[$k] = 0;
}
change to
Code:
function lookup_userids($usernames) {
global $vbulletin;
$ids = array();
foreach ($usernames as $k=>$v) {
$usernames[$k] = trim($vbulletin->db->escape_string(htmlspecialchars_uni($v)));
$ids[$k] = 0;
}