Update of /cvsroot/ispman/ispman/lib/ISPMan
In directory sc8-pr-cvs1:/tmp/cvs-serv13205
Modified Files:
ApacheMan.pm
Log Message:
added default (empty) values for undefined vhost attributes.
($data hash got screwed up, if they were not defined (e.g. by ispman.addvhost))
Index: ApacheMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/ApacheMan.pm,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- ApacheMan.pm 8 Jan 2004 23:32:39 -0000 1.40
+++ ApacheMan.pm 11 Jan 2004 21:46:21 -0000 1.41
@@ -288,11 +288,11 @@
"homeDirectory" => (join '/' , ($domain_info->{'homeDirectory'}, "vhosts", $r->param("ispmanVhostName"))),
"userPassword" => $self->encryptPassWithMethod($r->param("userPassword"),$self->getConf('userPassHashMethod')),
"ispmanVhostServerAlias" => $r->param("ispmanVhostServerAlias") || "",
- "FTPStatus" => $r->param("FTPStatus"),
- "ispmanVhostStats" => $r->param("ispmanVhostStats"),
- "FTPQuotaMBytes" => $r->param("FTPQuotaMBytes"),
- "ispmanVhostDocumentRootOption" => $documentrootoptions,
- "ispmanVhostScriptDirOption" => $scriptdiroptions
+ "FTPStatus" => $r->param("FTPStatus") || "",
+ "ispmanVhostStats" => $r->param("ispmanVhostStats") || "",
+ "FTPQuotaMBytes" => $r->param("FTPQuotaMBytes") || "",
+ "ispmanVhostDocumentRootOption" => $documentrootoptions || "",
+ "ispmanVhostScriptDirOption" => $scriptdiroptions || ""
};
$data->{"ispmanVhostExtraConf"} = $r->param("ispmanVhostExtraConf") if $r->param("ispmanVhostExtraConf");
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
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.