No display of shipping if there are no shipping costs on sales documents or views.
[fa-stable.git] / includes / main.inc
index e6b7f9f8a48ed4b096610adc5b2e15ca19281f4e..db1576bf50d748ad38b2b0bdd7b1b160dfcba57d 100644 (file)
@@ -348,6 +348,7 @@ function find_custom_file($rep)
        Changes all not POSIX compatible chars to underscore.
 */
 function clean_file_name($filename) {
+    $filename = str_replace(chr(0), '', $filename);
     return preg_replace('/[^a-zA-Z0-9.\-_]/', '_', $filename);
 }