[pve-devel] r5041 - pve-common/trunk

svn-commits at proxmox.com svn-commits at proxmox.com
Mon Aug 23 07:34:27 CEST 2010


Author: dietmar
Date: 2010-08-23 05:34:27 +0000 (Mon, 23 Aug 2010)
New Revision: 5041

Modified:
   pve-common/trunk/RESTHandler.pm
Log:
only join when length > 1


Modified: pve-common/trunk/RESTHandler.pm
===================================================================
--- pve-common/trunk/RESTHandler.pm	2010-08-20 10:43:35 UTC (rev 5040)
+++ pve-common/trunk/RESTHandler.pm	2010-08-23 05:34:27 UTC (rev 5041)
@@ -175,7 +175,7 @@
 	    die "unsupported fragmentDelimiter '$fd'" 
 		if $fd ne '';
 
-	    $stack = [ join ('/', @$stack) ] if scalar(@$stack);
+	    $stack = [ join ('/', @$stack) ] if scalar(@$stack) > 1;
 	}
 
 	return $subh->find_handler($method, $stack, $uri_param);



More information about the pve-devel mailing list