@@ -2053,10 +2053,26 @@ OFMutableString *ret = [[self mutableCopy] autorelease]; [ret appendString: OF_PATH_DELIMITER_STRING]; [ret appendString: component]; + [ret makeImmutable]; + + return ret; + } +} + +- (OFString *)stringByAppendingURLPathComponent: (OFString *)component +{ + if ([self hasSuffix: @"/"]) + return [self stringByAppendingString: component]; + else { + OFMutableString *ret = [[self mutableCopy] autorelease]; + + [ret appendString: @"/"]; + [ret appendString: component]; + [ret makeImmutable]; return ret; } }