Another USER-WRN bad 'USER@' dest
![](https://seccdn.libravatar.org/avatar/edf5328b5c9dff97734d71cdb5c3ca9e.jpg?s=120&d=mm&r=g)
Dear list, we are using the ftp-proxy (1.7) for long time and it's running fine. now i had to established a connection to a ftp-server with the following parameters. User: user@system (looks like there is another proxy we had to talk to) Server: ftp.somewhere.de so i do a connect to user@system@ftp.somewhere.de the proxy splits this at the _first_ at-sign and of cause system@ftp.somewhere.de is not a valid server name. This looks like we can not cascade more then one proxy in a row. My questions: Is this problem known and fixed in a later version fe. 1.9 - I had a quick look and it dosen't look like but i didn't try it yet. If it is not fixed now - i would patch it to search the last at-sign in the username i think its in ftp-cmds.c line 523 if(config_bool(NULL, "AllowMagicUser", 0) != 0 && (p = config_str(NULL, "UseMagicChar", "@")) && < (p = strchr(arg, *p)) != NULL)
(p = strrchr(arg, *p)) != NULL)
change strchr() to strrchr() to find the last @ what do you think about this ? bye Dirk Roloff
participants (1)
-
Roloff, Dirk