/[smecontribs]/rpms/smeserver-mod_dav/contribs10/smeserver-mod_dav-1.1-bz10347-bz4564-bz5337.patch
ViewVC logotype

Diff of /rpms/smeserver-mod_dav/contribs10/smeserver-mod_dav-1.1-bz10347-bz4564-bz5337.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by jpp, Tue Mar 2 20:39:34 2021 UTC Revision 1.4 by jpp, Tue Mar 2 20:43:41 2021 UTC
# Line 12  diff -Nur smeserver-mod_dav-1.1.old/root Line 12  diff -Nur smeserver-mod_dav-1.1.old/root
12           my %properties = $ibay->props;           my %properties = $ibay->props;
13           my $key = $ibay->key;           my $key = $ibay->key;
14  +       my $dynamicContent = $properties{'CgiBin'} || "disabled";  +       my $dynamicContent = $properties{'CgiBin'} || "disabled";
15  +        my $secureEXEC = $properties{'ModDavsecureEXEC'} || 'enabled';  +        my $secureEXEC = $properties{'ModDavSecureEXEC'} || 'enabled';
16  +        my $access = $properties{'PublicAccess'} || 'none';  +        my $access = $properties{'PublicAccess'} || 'none';
17  +       $OUT .= "\n    # ibay $key disabled for httpd so no DAV access\n" if $access eq 'none';  +       $OUT .= "\n    # ibay $key disabled for httpd so no DAV access\n" if $access eq 'none';
18  +       next if $access eq 'none';  +       next if $access eq 'none';
# Line 39  diff -Nur smeserver-mod_dav-1.1.old/root Line 39  diff -Nur smeserver-mod_dav-1.1.old/root
39  +                 $OUT .= "    <FilesMatch \\.php\$>\n";                  +                 $OUT .= "    <FilesMatch \\.php\$>\n";                
40  +                 $OUT .= "        #disabling php\n";  +                 $OUT .= "        #disabling php\n";
41  +                  $OUT .= "        SetHandler !\n"; # could use also SetHandler  none  +                  $OUT .= "        SetHandler !\n"; # could use also SetHandler  none
42  +                 $OUT .= "        deny from all\n" if ( $properties{'ModDavHidephp'} || 'enabled' ) eq 'enabled';  +                 $OUT .= "        deny from all\n" if ( $properties{'ModDavHidePHP'} || 'enabled' ) eq 'enabled';
43  +                  $OUT .= "    </FilesMatch>\n";                +                  $OUT .= "    </FilesMatch>\n";              
44  +                  $OUT .= "    Options -ExecCGI\n";  +                  $OUT .= "    Options -ExecCGI\n";
45  +                 $OUT .= "    RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo\n";  +                 $OUT .= "    RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo\n";


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed