Changeset 3272 for libcaca/trunk


Ignore:
Timestamp:
Nov 4, 2008, 5:46:47 AM (11 years ago)
Author:
bsittler
Message:

show client-side filename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca-php/examples/www/export.php

    r3262 r3272  
    2626
    2727$file = isset($_FILES['file']) ? $_FILES['file']['tmp_name'] : NULL;
     28$filename = isset($_FILES['file']) ? $_FILES['file']['name'] : NULL;
    2829$format = isset($_REQUEST['format']) ? $_REQUEST['format'] : NULL;
    2930
     
    111112        if(caca_import_file($cv, $file, "") < 0)
    112113        {
    113                 die($argv[0] . ": `" . $file . "' has unknown format\n");
     114                die("`" . htmlspecialchars($filename) . "' has unknown format\n");
    114115        }
    115116}
Note: See TracChangeset for help on using the changeset viewer.