Browse Source

Fixed issue where an upload with an extension of 1 character would not be viewable.

pull/26/head
Teknikode 4 years ago
parent
commit
c675a11ec3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      upload/web.config

+ 2
- 2
upload/web.config View File

@@ -4,14 +4,14 @@
<rewrite>
<rules>
<rule name="View File" enabled="true" stopProcessing="true">
<match url="^([a-zA-Z0-9]+)([\.]([^/]+))?[^/]$" ignoreCase="false" />
<match url="^([a-zA-Z0-9]+)[\.]?([^/]+)?[^/]$" ignoreCase="false" />
<action type="Rewrite" url="/lib/download.php?file={C:1}" appendQueryString="false" logRewrittenUrl="false" />
<conditions>
<add input="{REQUEST_URI}" pattern="/(.+)" />
</conditions>
</rule>
<rule name="Delete Upload" stopProcessing="true">
<match url="^(([a-zA-Z0-9]+)([\.]([^/]+))?)/([a-zA-Z0-9]+)/?$" />
<match url="^(([a-zA-Z0-9]+)[\.]?([^/]+)?)/([a-zA-Z0-9]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

Loading…
Cancel
Save