Skip to content

Commit

Permalink
Item15285: better default settings
Browse files Browse the repository at this point in the history
... for System and Applications webs
  • Loading branch information
MichaelDaum committed Jan 26, 2024
1 parent 7bca4d5 commit a4ef90a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion data/System/XSendFileContrib.txt
Expand Up @@ -131,6 +131,7 @@ See https://tn123.org/mod_xsendfile/ for more information on how to compile =mod
---++ Change History

%TABLE{columnwidths="7em" tablewidth="100%"}%
| 26 Jan 2024 | better default settings for System and Applications webs |
| 27 Sep 2021 | switched from File::MMagic to File::MMagic::XS for better performance |
| 09 Oct 2020 | added ={Locations}= feature to be able to work around a bug in pdf.js not forwarding cookies in byte-range requests |
| 11 Jun 2018 | display reason why access to a file was denied |
Expand All @@ -156,7 +157,7 @@ See https://tn123.org/mod_xsendfile/ for more information on how to compile =mod

%META:FORM{name="PackageForm"}%
%META:FIELD{name="Author" title="Author" value="Michael Daum"}%
%META:FIELD{name="Copyright" title="Copyright" value="2013-2021, Michael Daum"}%
%META:FIELD{name="Copyright" title="Copyright" value="2013-2024, Michael Daum"}%
%META:FIELD{name="Description" title="Description" value="%25$SHORTDESCRIPTION%25"}%
%META:FIELD{name="Home" title="Home" value="https://foswiki.org/Extensions/%TOPIC%"}%
%META:FIELD{name="License" title="License" value="GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]])"}%
Expand Down
8 changes: 5 additions & 3 deletions lib/Foswiki/Contrib/XSendFileContrib.pm
@@ -1,6 +1,6 @@
# Module of Foswiki - The Free and Open Source Wiki, https://foswiki.org/
#
# Copyright (C) 2013-2022 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2013-2024 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -18,6 +18,7 @@ package Foswiki::Contrib::XSendFileContrib;

use strict;
use warnings;

use Encode ();
use Foswiki::Sandbox ();
use Foswiki::Func ();
Expand All @@ -27,9 +28,10 @@ use File::Spec ();
use Error qw( :try );
use Foswiki::AccessControlException ();

our $VERSION = '7.00';
our $RELEASE = '05 May 2022';
our $VERSION = '7.01';
our $RELEASE = '%$RELEASE%';
our $SHORTDESCRIPTION = 'A viewfile replacement to send static files efficiently';
our $LICENSECODE = '%$LICENSECODE%';
our $mimeTypeInfo;
our $mmagic;

Expand Down
8 changes: 4 additions & 4 deletions lib/Foswiki/Contrib/XSendFileContrib/Config.spec
Expand Up @@ -73,14 +73,14 @@ $Foswiki::cfg{XSendFileContrib}{ExcludeFromLogging} = '.*/igp_.*';
# unconditionally.
$Foswiki::cfg{XSendFileContrib}{AccessRules} = [
{
web => "Sandbox",
topic => "TestUpload",
file => ".*\.pdf",
requiredAccess => "CHANGE",
topic => "SitePreferences",
},
{
file => "igp_.*",
},
{
web => "System|Applications/?.*",
}
];

# **BOOLEAN LABEL="Redirect to Login on access denied"**
Expand Down

0 comments on commit a4ef90a

Please sign in to comment.