]> err.no Git - sope/commitdiff
added handling of 0-port values in URLs
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Thu, 3 Aug 2006 00:19:53 +0000 (00:19 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Thu, 3 Aug 2006 00:19:53 +0000 (00:19 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1331 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-appserver/NGObjWeb/ChangeLog
sope-appserver/NGObjWeb/Version
sope-appserver/NGObjWeb/WebDAV/SoWebDAVRenderer.m

index 63b71db8d28d6d4a01672190d2811a9a6c03e265..515d4c0b50155e156232c081180c9e5c13022aa3 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-03  Wolfgang Sourdeau  <WSourdeau@Inverse.CA>
+
+       * WebDAV/SoWebDAVRenderer.m: added special handling for 0-port values
+         in URLs (v4.5.242)
+
 2006-07-25  Marcus Mueller  <znek@mulle-kybernetik.com>
 
        * Templates/WODParser.m: fixed an infinite loop bug during comment
index 9dd486dd45ad68f0a5182df3dec222997c361741..65ee85eef95f4a6d20849a13ea309238c70c9d72 100644 (file)
@@ -1,6 +1,6 @@
 # version file
 
-SUBMINOR_VERSION:=241
+SUBMINOR_VERSION:=242
 
 # v4.5.234 requires libDOM          v4.5.21
 # v4.5.214 requires libNGExtensions v4.5.179
index 1b72f3b9fceedcb05f847c9509fe38c0dc726b36..7c739aa13c5dd851601ffc7a9e01cd087bf021fe 100644 (file)
@@ -444,8 +444,14 @@ static BOOL         formatOutput = NO;
   
   if ((tmp = [rq headerForKey:@"x-webobjects-server-name"])) {
     hostport = tmp;
-    if ((tmp = [rq headerForKey:@"x-webobjects-server-port"]))
-      hostport = [NSString stringWithFormat:@"%@:%@", hostport, tmp];
+    if ((tmp = [rq headerForKey:@"x-webobjects-server-port"]) != nil) {
+      if ([tmp intValue] > 0)
+       hostport = [NSString stringWithFormat:@"%@:%@", hostport, tmp];
+      else {
+       [self logWithFormat:@"got bogus port information from webserver: %@", 
+               hostport];
+      }
+    }
   }
   else if ((tmp = [rq headerForKey:@"host"]))
     hostport = tmp;