/[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.2 by jpp, Tue Mar 2 17:13:16 2021 UTC Revision 1.3 by jpp, Tue Mar 2 20:39:34 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";
# Line 101  diff -Nur smeserver-mod_dav-1.1.old/root Line 101  diff -Nur smeserver-mod_dav-1.1.old/root
101  +  +
102  +                # bug with httpd-2.4 fixed in httpd-2.5 only see https://bz.apache.org/bugzilla/show_bug.cgi?id=54914 PROPFIND will fail  +                # bug with httpd-2.4 fixed in httpd-2.5 only see https://bz.apache.org/bugzilla/show_bug.cgi?id=54914 PROPFIND will fail
103  +                $OUT .= "    #because of bug https://bz.apache.org/bugzilla/show_bug.cgi?id=54914 in httpd 2.4 DirectoryIndex disabled is needed for webdav to work\n";  +                $OUT .= "    #because of bug https://bz.apache.org/bugzilla/show_bug.cgi?id=54914 in httpd 2.4 DirectoryIndex disabled is needed for webdav to work\n";
104  +                $OUT .= "    DirectoryIndex disabled\n\n" unless ( ($properties{'DavNoDirectoryIndex'}||"enabled" ) eq "disabled");  +                $OUT .= "    DirectoryIndex disabled\n\n" unless ( ($properties{'ModDavNoDirectoryIndex'}||"enabled" ) eq "disabled");
105  +                $OUT .= "    #DirectoryIndex disabled : DavNoDirectoryIndex has been defined to force DirectoryIndex \n\n" if ( ($properties{'DavNoDirectoryIndex'}||"enabled" ) eq "disabled");  +                $OUT .= "    #DirectoryIndex disabled : DavNoDirectoryIndex has been defined to force DirectoryIndex \n\n" if ( ($properties{'ModDavNoDirectoryIndex'}||"enabled" ) eq "disabled");
106  +  +
107  +                $OUT .= "    order deny,allow\n";  +                $OUT .= "    order deny,allow\n";
108  +                $OUT .= "    deny from all\n";  +                $OUT .= "    deny from all\n";
# Line 200  diff -Nur smeserver-mod_dav-1.1.old/root Line 200  diff -Nur smeserver-mod_dav-1.1.old/root
200  +    my $accessMode = $properties{'UserAccess'} || 'wr-admin-rd-group';  +    my $accessMode = $properties{'UserAccess'} || 'wr-admin-rd-group';
201  +    my $access = $properties{'PublicAccess'} || 'none';  +    my $access = $properties{'PublicAccess'} || 'none';
202  +    my $ispassibay = $access =~ /-pw/;  +    my $ispassibay = $access =~ /-pw/;
203  +    my $Anonymous  =  $properties{'ModDavAnonymousRead'} || "enabled";  +    my $Anonymous  =  $properties{'ModDavAnonymousRead'} || "disabled";
204  +    my $MEMBERS = getMembers( $key, $iBayGroup);  +    my $MEMBERS = getMembers( $key, $iBayGroup);
205  +    my $REQUIRE = "";  +    my $REQUIRE = "";
206  +    if ($mode eq "read")  +    if ($mode eq "read")


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