ispman/lib/ISPMan ApacheMan.pm,1.66,1.67

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-serv3754/lib/ISPMan

Modified Files:
	ApacheMan.pm 
Log Message:
fixes bug [ 963850 ] ispmanVhostExtraConf not masked
text entered for ispmanVhostExtraConf will get encoded with HTML Entities

Index: ApacheMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/ApacheMan.pm,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- ApacheMan.pm	31 May 2004 20:13:41 -0000	1.66
+++ ApacheMan.pm	1 Jun 2004 00:03:47 -0000	1.67
@@ -39,6 +39,7 @@
 package ISPMan::ApacheMan;
 
 use strict;
+use HTML::Entities;
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK $Config);
 require Exporter;
 @ISA = qw(ISPMan Exporter AutoLoader);
@@ -193,7 +194,8 @@
 sub update_vhost {
     my $self = shift;
     my $r    = shift;
-    my $dn   = $self->getVhostDN( $r->param("ispmanDomain"),
+
+    my $dn = $self->getVhostDN( $r->param("ispmanDomain"),
         $r->param("ispmanVhostName") );
 
     my $domain      = $r->param("ispmanDomain");
@@ -211,7 +213,7 @@
     my $data = {};
 
     for (
-        qw(ispmanVhostServerAlias ispmanVhostExtraConf ispmanVhostIpAddress
+        qw(ispmanVhostServerAlias ispmanVhostIpAddress
         ispmanVhostDocumentRoot ispmanVhostScriptDir
         FTPQuotaMBytes FTPStatus ispmanVhostStats ispmanVhostLogdir
         ispmanVhostStatdir)
@@ -225,6 +227,9 @@
         }
     }
 
+    $data->{'ispmanVhostExtraConf'} =
+        HTML::Entities::encode($r->param("ispmanVhostExtraConf"));
+
     $data->{'userPassword'} =
       $self->encryptPassWithMethod( $r->param("userPassword"),
         $self->getConf('userPassHashMethod') );



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
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.