This is an automated email from the ASF dual-hosted git repository.

juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git

commit abb701cd04cb404ed1fbd9eefcf03e2d831433e5
Author: Juan Pablo Santos Rodríguez <[email protected]>
AuthorDate: Thu Sep 26 23:31:48 2024 +0200

    add .pdf and .xml extensions to jspwiki.attachment.forceDownload default 
value
---
 jspwiki-main/src/main/resources/ini/jspwiki.properties | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/jspwiki-main/src/main/resources/ini/jspwiki.properties 
b/jspwiki-main/src/main/resources/ini/jspwiki.properties
index 297191d95..d58b43b23 100644
--- a/jspwiki-main/src/main/resources/ini/jspwiki.properties
+++ b/jspwiki-main/src/main/resources/ini/jspwiki.properties
@@ -166,10 +166,10 @@ jspwiki.attachment.provider = BasicAttachmentProvider
 #jspwiki.attachment.maxsize=100000
 
 #
-#  By default JSPWiki accepts all types of attachments.  However, you
+#  By default, JSPWiki accepts all types of attachments.  However, you
 #  can allow some types only, or forbid some other types.  By default,
 #  all file types are allowed (if you do not specify the "allow" list
-#  at all or it is empty).
+#  at all, or it is empty).
 # These allow/forbid statements are not enforced for users with 
AdminPermissions.
 #
 #  These both are space-separated lists of file suffixes
@@ -180,8 +180,9 @@ jspwiki.attachment.provider = BasicAttachmentProvider
 #  Example: Forbid HTML, PHP, ASP and EXE
 #jspwiki.attachment.forbidden=.html .htm .php .asp .exe
 
-# Attachment links to HTML, HTM and JS files will force a download rather than 
opening the attachment
-jspwiki.attachment.forceDownload= .html .htm .js .svg
+# Attachment links to HTML, HTM and JS, etc. files will force a download 
rather than opening the attachment.
+# Set to * to always enforce attachment download
+jspwiki.attachment.forceDownload= .html .htm .js .pdf .svg .xml
 
 #
 #  page Diff Representation
@@ -199,7 +200,7 @@ jspwiki.attachment.forceDownload= .html .htm .js .svg
 #        new and not much tested. YMMV.
 #    * ExternalDiffProvider - uses a system diff program (which
 #        can be configured using "jspwiki.diffCommand") to
-#        create an unified (!) diff.
+#        create a unified (!) diff.
 #
 #        Example for a diff command:
 #        jspwiki.diffCommand = /usr/bin/diff -u %s1 %s2
@@ -221,12 +222,11 @@ jspwiki.refManager = 
org.apache.wiki.references.DefaultReferenceManager
 #  to support all languages in your Wiki, you probably want to enable
 #  this.  From JSPWiki 2.2, it is strongly suggested that you use UTF-8.
 #
-#  Note that you can't switch these in the mean time, since the way the
+#  Note that you can't switch these in the meantime, since the way the
 #  files are encoded on disk is incompatible between ISO-Latin1 and UTF-8.
 #  Don't try.  You'll get all sorts of interesting problems, if you do.
 #
-#  Possible values are 'ISO-8859-1' (default, if none has been specified)
-#  and 'UTF-8'.
+#  Possible values are 'ISO-8859-1' and 'UTF-8' (default, if none has been 
specified).
 
 jspwiki.encoding = UTF-8
 
@@ -292,7 +292,7 @@ jspwiki.translatorReader.matchEnglishPlurals = true
 #  known as "CamelCase", or "BumpyCase", or "InterCapping".  I personally
 #  like CamelCase as a word, which is why this property is named as it is :-).
 #
-#  By default this is false, since traditional WikiLinks may confuse newbies.
+#  By default, this is false, since traditional WikiLinks may confuse newbies.
 #
 #  This option can be overridden on a per-page basis using the SET directive.
 #

Reply via email to