Problem/Motivation

I'm developing in windows, and when multiple path are inserted in the Sender setting tab the account_sync_servers($account) function at line 50 in account_sync.sender.inc gives me an array where path include \r character
for example

[0] => http://site-a.local\r
[1] => http://site-b.local\r
[2] => http://site-c.local

so synchronization for multiple servers is not working for me.

Proposed resolution

changing this line

$servers[] = $server;

in this way

$servers[] = trim($server);

in account_sync.module, line 120

in this way it works for me..

Comments

francescoq’s picture

Here's the patch

sandip choudhury’s picture

This works for me also. I am in linux shared hosting.

sandip choudhury’s picture

Hello hadsie, Please apply this patch in Account Sync module.