mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
remove unnecessary check
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23444 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7d78452702
commit
97d73ea53f
2 changed files with 5 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
2006-09-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTimeZone.m: Remove unnecessary check on fiel name as
|
||||
Roland Schwingel reported that it caught legitimate files on windows.
|
||||
|
||||
2006-09-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/win32/NSMessagePortWin32.m: Restructure to try to avoid
|
||||
|
|
|
@ -464,15 +464,6 @@ static NSString *_time_zone_path(NSString *subpath, NSString *type)
|
|||
if (data == nil)
|
||||
{
|
||||
NSString *fileName;
|
||||
const char *str = [name UTF8String];
|
||||
|
||||
/* Make sure that only time zone files are accessed.
|
||||
FIXME: Make this more robust. */
|
||||
if ((str)[0] == '/' || strchr(str, '.') != NULL)
|
||||
{
|
||||
NSLog(@"Disallowed time zone name `%@'.", name);
|
||||
return nil;
|
||||
}
|
||||
|
||||
fileName = [NSTimeZoneClass getTimeZoneFile: name];
|
||||
if (fileName == nil
|
||||
|
|
Loading…
Reference in a new issue