ispman/lib/ISPMan ApacheMan.pm,1.74,1.75

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4216/lib/ISPMan

Modified Files:
	ApacheMan.pm 
Log Message:
fixed bug [ 1007605 ] problem with >creat www<
(merged from rel_1_2-bugfixes)

Index: ApacheMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/ApacheMan.pm,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- ApacheMan.pm	9 Jul 2004 22:19:12 -0000	1.74
+++ ApacheMan.pm	22 Aug 2004 19:36:12 -0000	1.75
@@ -298,9 +298,10 @@
         && $self->{'session'}->param("logintype") =~ m/reseller|client/ )
     {
         my $domainHomeDirectoryPath = $domain_info->{"homeDirectory"};
-        if ( $r->param("homeDirectory") !~ m/^$domainHomeDirectoryPath/ ) {
-            print
-"Add Vhost aborted!\nHomeDirectory must be subdir of $domainHomeDirectoryPath.\n";
+        if ( $r->param("homeDirectory") &&
+             $r->param("homeDirectory") !~ m/^$domainHomeDirectoryPath/ ) {
+            print "Add Vhost aborted!\n".
+                "HomeDirectory must be subdir of $domainHomeDirectoryPath.\n";
             return;
         }
     }



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.