Lines Matching refs:filename
44 function _sanitizeFileName($filename) argument
46 $filename = preg_replace('/[\x00-\x1F\x7F]/', '', $filename); // control
47 $filename = preg_replace('/["*:<>?|\/\\\\]/', '_', $filename); // graphic
48 $filename = preg_replace('/[#&]/', '_', $filename); // dw technical issues
50 return $filename;
58 function _buildContentDispositionHeader($download, $filename, $no_pathinfo = false) argument
66 if (!preg_match('/[\x00-\x1F\x7F-\xFF"*:<>?|\/\\\\]/', $filename)) {
68 $ret .= ' filename="' . $filename . '";';
71 $ret .= " filename*=UTF-8''" . rawurlencode($filename) . ';';
73 strpos($filename, '"') === false
80 $ret .= ' filename="' . $filename . '"';
92 $ret .= ' filename="' . rawurlencode($filename) . '";';