diff --git a/data/System/XSendFileContrib.txt b/data/System/XSendFileContrib.txt index 14c46c2..4ae3e6d 100644 --- a/data/System/XSendFileContrib.txt +++ b/data/System/XSendFileContrib.txt @@ -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 | @@ -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]])"}% diff --git a/lib/Foswiki/Contrib/XSendFileContrib.pm b/lib/Foswiki/Contrib/XSendFileContrib.pm index be60cfd..43cd455 100644 --- a/lib/Foswiki/Contrib/XSendFileContrib.pm +++ b/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 @@ -18,6 +18,7 @@ package Foswiki::Contrib::XSendFileContrib; use strict; use warnings; + use Encode (); use Foswiki::Sandbox (); use Foswiki::Func (); @@ -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; diff --git a/lib/Foswiki/Contrib/XSendFileContrib/Config.spec b/lib/Foswiki/Contrib/XSendFileContrib/Config.spec index 97ae2fe..e896686 100644 --- a/lib/Foswiki/Contrib/XSendFileContrib/Config.spec +++ b/lib/Foswiki/Contrib/XSendFileContrib/Config.spec @@ -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"**