diff options
author | Stephan Köninger <github@stekoe.de> | 2016-03-11 01:08:56 +0300 |
---|---|---|
committer | Stephan Köninger <github@stekoe.de> | 2016-03-11 01:08:56 +0300 |
commit | 73a7c45dd413d2db360ac04fa99d7174de491f85 (patch) | |
tree | 6771f757472fe626effcace46730a1f366b26968 | |
parent | d8ba3a8944d924eedebb5f0c193ccd5493a09ba4 (diff) |
Allow jpg files to be statically served
When using an background image in themes of type JPG, the current setting of owncloud's htaccess file does not allow to deliver these kinds of images as static content. Adding the file extensions as done in this commit, it works flawlessly.
-rw-r--r-- | .htaccess | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess index 085467e91ca..cddbd4f47de 100644 --- a/.htaccess +++ b/.htaccess @@ -53,7 +53,7 @@ Options -MultiViews RewriteRule ^core/js/oc.js$ index.php/core/js/oc.js [PT,E=PATH_INFO:$1] RewriteRule ^core/preview.png$ index.php/core/preview.png [PT,E=PATH_INFO:$1] - RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff|ico)$ + RewriteCond %{REQUEST_FILENAME} !\.(css|js|svg|gif|png|html|ttf|woff|ico|jpg|jpeg)$ RewriteCond %{REQUEST_FILENAME} !core/img/favicon.ico$ RewriteCond %{REQUEST_FILENAME} !/remote.php RewriteCond %{REQUEST_FILENAME} !/public.php |