Changeset 74738 in spip-zone


Ignore:
Timestamp:
Aug 13, 2013, 12:56:20 PM (6 years ago)
Author:
lesage.sylvain@…
Message:

report de 74737

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _squelettes_/mediaspip/mediaspip_core/branches/v1/action/ms_forcer_telecharger.php

    r71886 r74738  
    109109
    110110                if($doc['mime_type'])
    111                         header("Content-Type: ". $doc['mime_type'].";\n");
     111                        header("Content-Type: ". $doc['mime_type']);
    112112
    113113                $f = basename($file);
     
    115115                //header('Content-Type: application/octet-stream');
    116116
    117                 header("Content-Disposition: attachment; filename=\"$f\";\n\n");
     117                header("Content-Disposition: attachment; filename=\"$f\";");
    118118                //header("Content-Transfer-Encoding: binary");
    119119
     
    124124
    125125                if ($cl = filesize($file)){
    126                         header("Content-Length:' $cl';\n");
     126                        header("Content-Length: ". $cl);
    127127                }
    128128
Note: See TracChangeset for help on using the changeset viewer.