From: poy <po...@12...> - 2007-11-15 13:13:22
|
little fix, not tested of course. as for ':', have a look at line 198 of Util.cpp. ;) poy ----- Original Message ----- From: "itinerants" <iti...@ho...> To: <dcp...@li...> Sent: Wednesday, November 14, 2007 11:24 AM Subject: [dcplusplus-devel] ValidateFileName problem on Macintosh... > In file... Util.cpp > Routine... Util::validateFileName > > This attempts to convert an arbitrary "filename" into something that'll > work > as a file name on the system it's running on. For example, the url of a > hub > file list (" http://dchublist.com/hublist.xml.bz2") into a usable > filename. > > I can speak only for Macintosh, but '/' (and btw ':') need to be on the > list > of "badChars" outside the "#ifdef _WIN32" switch, otherwise the filename > produced won't work. > > R > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > dcplusplus-devel mailing list > dcp...@li... > https://lists.sourceforge.net/lists/listinfo/dcplusplus-devel > > |