You are here:  » Invalid filename


Invalid filename

Submitted by TWDesigns on Wed, 2016-05-04 00:34 in

Hey David,

I was having an issue with my site giving database errors on import, even though it would still work, I wanted to correct this. I checked my version and it was 15/09 BETA. I downloaded the newest script and loaded it. Ran through the setup process and logged in. When I try to register a feed it tells me Invalid filename.

I tried various ones with the same results. They are all .txt files which is what I have always used.

Suggestions?

Thanks,
Tommy

Submitted by support on Wed, 2016-05-04 07:51

Hello Tommy,

There is a new config.advanced.php parameter for validation of valid feed filenames as of 15/09A - to permit .txt as well as .csv and .xml modify the $config_filenameRegExp setting at line 94 as follows:

  $config_filenameRegExp = "/^([0-9A-Za-z_\-\.]+)(\.xml|\.csv|\.txt)$/";

Cheers,
David.
--
PriceTapestry.com