Changeset 308

Show
Ignore:
Timestamp:
02/26/08 01:35:14 (9 months ago)
Author:
rm
Message:

validate key for some non-legal file chars

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thrudoc/src/DiskBackend.cpp

    r261 r308  
    368368            throw e; 
    369369        } 
    370         else if (key->find (";") != string::npos) 
     370        // anything that's not legal in a file should be found and err'd on here 
     371        else if (key->find_first_of (";:/\\/~$") != string::npos) 
    371372        { 
    372373            ThrudocException e;