Page 1 of 1

Backup: Illegal character(s) '-' in field: 'Target'

Posted: 10 Jun 2010, 17:32
by frauwernersen
Hi,

I've come across a strange bug in the admin interface that doesn't seem to have been reported before. If I've missed an earlier report, please accept my apologies for the double post.

I have an external FTP server to back up some of my bubba files to. However, the host name contains a "-" (minus), and Bubba doesn't seem to like it. Whenever I try to save the backup job, I get the error message "Update error:Illegal character(s) '-' in field: 'Target'". Removing the - helps, but then the host name is incorrect, of course.

Has anybody else encountered this issue?

Thanks for your help in advance,

Walter

Re: Backup: Illegal character(s) '-' in field: 'Target'

Posted: 11 Jun 2010, 13:32
by grushog
I had exactly the same problem. I contacted excito support about it so the problem is known by them.

They provided me with this solution:

In file '/usr/lib/web-admin/adminfunctions.php' line 1495
replace

Code: Select all

if(preg_match("/[^\w\.]/",$value,$chars)) {  // only allow "\w", "."
with

Code: Select all

if(preg_match("/[^\w\.\-]/",$value,$chars)) {  // only allow "\w", "."