mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-24 12:11:18 +00:00
in appendContentString: append string only if not nil (patch from Philip Moetteli)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@19510 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1ce3a1a81b
commit
58182bae3d
1 changed files with 3 additions and 3 deletions
|
@ -515,8 +515,9 @@ static NSString* globalDefaultURLEncoding=nil;
|
||||||
[[[NSString alloc]initWithData:_contentData
|
[[[NSString alloc]initWithData:_contentData
|
||||||
encoding:[self contentEncoding]]
|
encoding:[self contentEncoding]]
|
||||||
autorelease]);
|
autorelease]);
|
||||||
|
if(string) {
|
||||||
[_contentString appendString:string];
|
[_contentString appendString:string];
|
||||||
|
}
|
||||||
#ifndef NO_GNUSTEP
|
#ifndef NO_GNUSTEP
|
||||||
if (_cachesStack)
|
if (_cachesStack)
|
||||||
[self _cacheAppendString:string];
|
[self _cacheAppendString:string];
|
||||||
|
@ -1220,4 +1221,3 @@ static NSString* globalDefaultURLEncoding=nil;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue