Changeset 22791

Show
Ignore:
Timestamp:
26.08.2010 14:14:12 (9 years ago)
Author:
mdewsnip
Message:

Changed cgiutils::process_post_section() to use the current timestamp for the temporary uploaded filename instead of the MD5 hash of the uploaded file. This is only used by the depositor, which already uses timestamps, and timestamps will be more efficient that MD5ing, particularly for big files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/cgiutils.cpp

    r22404 r22791  
    109109      } 
    110110 
    111       // create tmp_name for storing the file on disk 
    112       text_t tmp_name = md5data(filedata); 
     111      // create tmp_name for storing the file on disk, using the current timestamp 
     112      text_t tmp_name(time(NULL)); 
    113113      tmp_name = filename_cat(gsdlhome, "tmp", tmp_name); 
    114114