Changeset 5272
- Timestamp:
- 12/19/11 14:33:18 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/get_archive.php
r5134 r5272 204 204 if( $fileContent ) 205 205 { 206 header("Content-transfer-encoding: ".$info["encoding"] ); 207 208 if( $image === "thumbnail" ) 206 header("Content-Length: ". mb_strlen($fileContent)); 207 208 if( isset($info["encoding"]) ) 209 { 210 header("Content-transfer-encoding: ".$info["encoding"] ); 211 header("Content-encoding: ".$info["encoding"] ); 212 } 213 214 if( $image === 'thumbnail' && (strtolower(substr ( $info['name'] , (strrpos($info['name'], '.')+1))) !== 'bmp') ) 209 215 { 210 216 $pic = imagecreatefromstring( $fileContent ); … … 232 238 } 233 239 else 234 { 240 { 235 241 /** 236 242 * Delete Diretorio … … 262 268 $tempDir = $GLOBALS['phpgw_info']['server']['download_temp_dir']; 263 269 270 header("Content-Length: ". filesize($filename)); 271 header("Content-encoding: text/plain" ); 272 264 273 if (preg_match("#^".$tempDir."/(".$GLOBALS['phpgw']->session->sessionid."/)*[A-z0-9_]+_".$GLOBALS['phpgw']->session->sessionid."[A-z0-9]*(\.[A-z]{3,4})?$#",$filename)) 265 274 { … … 281 290 } 282 291 } 283 292 284 293 //-----------------------// 285 294
Note: See TracChangeset
for help on using the changeset viewer.