Filename truncs whitespaces

so if I set the filename to "abc def ghi" then the file output would be "abc" (without the .zip)

but this is even more of a problem when using vars
lets say my file name is "%node_title" and my nodes title is "A long night" then the file will be "A"

I'm not sure if this is the intended functionality of pclzip or not

perphaps whitespaces can be replaced with underscores '_' instead of truncuating the string, such as...
(although this is probably not the right function to put the fix in)

function pclzip_zip_node_files_str_replacevars($string, $node){
...
$string = str_replace(" ","_", $string);
return $string;
}

I'm not sure what other characters cause this to happen

Thanks and keep up the good work, this is a very useful utility,

Derek

Comments

ssm2017 Binder’s picture

Status: Active » Fixed

thank you for reporting
i have added the option to replace the spaces with underscore
this should be available in the next release ( beta3 )

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.