New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

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

Got problems with your B2 or B3? Share and get helped!
Post Reply
frauwernersen
Posts: 1
Joined: 10 Jun 2010, 17:23

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

Post 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
grushog
Posts: 5
Joined: 19 Oct 2008, 05:18

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

Post 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", "."
Post Reply