Ignore:
Timestamp:
2004-06-01T14:14:31+12:00 (20 years ago)
Author:
mdewsnip
Message:

Local library now allows multiple spaces in file names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/w32server/cgiwrapper.cpp

    r6023 r7519  
    735735  // try to open the file
    736736  filename = filename_cat (current_gsdlhome, filename);
    737   /* Feb 2002 - handle a file with a space in it's name.
    738      Assume that if there is a space, it is in the collect name (and there's
    739      only one space). */
     737  /* Feb 2002 - handle files with spaces in their name. */
    740738  text_t::iterator space_start;
    741739  space_start=findword(filename.begin(),filename.end(),"%20");
    742   if (space_start != filename.end()) {
     740  while (space_start != filename.end()) {
    743741    // we found a space...
    744742    text_t::iterator after_space=space_start+3;
     
    747745    new_filename += substr(after_space,filename.end());
    748746    filename=new_filename;
     747    space_start=findword(filename.begin(),filename.end(),"%20");
    749748  }
    750749
Note: See TracChangeset for help on using the changeset viewer.