Skip to content
Snippets Groups Projects
  1. Dec 29, 2020
  2. Dec 16, 2020
  3. Mar 05, 2020
    • zertrin's avatar
      Fix security header setting in .htaccess by adding 'onsuccess unset' · af5380f5
      zertrin authored
      
      The headers might already be set by the system administrator at the http server
      level (apache or nginx) for some or all virtualhosts.
      
      Using "always set" in the .htaccess of Nextcloud leads to the situation where
      the headers might be set twice (once in the default 'onsuccess' table and once
      in the 'always' table)! Which leads to warnings in the admin area.
      
      Adding "onsuccess unset" solves the problem, and forces the header in
      the 'onsucess' table to be unset, and the header in the 'always' table to be set.
      
      NOTE: with this change, Nextcloud overrides whatever the system administrator
      might have already set
      
      See github issues #16893 #16476 #16938 #18017 and discussion in PR #19002
      
      Signed-off-by: default avatarzertrin <zertrin@gmail.com>
      af5380f5
  4. Aug 29, 2019
  5. Aug 11, 2019
  6. Jul 23, 2019
  7. Jul 22, 2019
  8. Mar 04, 2019
  9. Nov 19, 2018
  10. Nov 18, 2018
  11. Oct 11, 2018
  12. Oct 10, 2018
  13. Feb 28, 2018
  14. Feb 05, 2018
  15. Dec 18, 2017
  16. Dec 16, 2017
  17. Apr 13, 2017
  18. Mar 26, 2017
  19. Feb 03, 2017
  20. Nov 14, 2016
    • Jörn Friedrich Dreyer's avatar
      Cache js, css and woff files for a week (#26591) · 9802c5cd
      Jörn Friedrich Dreyer authored
      increases the cache duration for css and js files from 2 hours to half a year. Should they change the versionhash changes as well and a new file is fetched. Half a year should be long enough for oc updates.
      
      Also allows caching woff files for 7 days. Currently, there is no versionhash available, but pressing F5 will also refresh the woff files.
      9802c5cd
  21. Sep 13, 2016
  22. Aug 08, 2016
  23. Jun 09, 2016
  24. Jun 03, 2016
  25. May 23, 2016
  26. May 12, 2016
    • Lukas Reschke's avatar
      Do not automatically try to enable index.php-less URLs (#24539) · 52add798
      Lukas Reschke authored
      The current logic for mod_rewrite relies on the fact that people have properly configured ownCloud, basically it reads from the `overwrite.cli.ur
      l` entry and then derives the `RewriteBase` from it.
      
      This usually works. However, since the ownCloud packages seem to install themselves at `/owncloud` (because subfolders are cool or so…) _a lot_ of people have just created a new Virtual Host for it or have simply symlinked the path etc.
      
      This means that `overwrite.cli.url` is wrong, which fails hard if it is used as RewriteBase since Apache does not know where it should serve files from. In the end the ownCloud instance will not be accessible anymore and users will be frustrated. Also some shared hosters like 1&1 (because using shared hosters is so awesome… ;-)) have somewhat dubious Apache configurations or use versions of mod_rewrite from the mediveal age. (because updating is money or so…)
      
      Anyhow. This makes this explicitly an opt-in configuration flag. If `htaccess.RewriteBase` is set then it will configure index.php-less URLs, if
      admins set that after installation and don't want to wait until the next ownCloud version they can run `occ maintenance:update:htaccess`.
      
      For ownCloud 9.0 we also have to add a repair step to make sure that instances that already have a RewriteBase configured continue to use it by copying it into the config file. That way all existing URLs stay valid. That one is not in this PR since this is unneccessary in master.
      
      Effectively this reduces another risk of breakage when updating from ownCloud 8 to ownCloud 9.
      
      Fixes https://github.com/owncloud/core/issues/24525, https://github.com/owncloud/core/issues/24426 and probably some more.
      52add798
  27. Mar 17, 2016
  28. Mar 15, 2016
  29. Mar 10, 2016
    • Stephan Köninger's avatar
      Allow jpg files to be statically served · 73a7c45d
      Stephan Köninger authored
      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.
      73a7c45d
  30. Mar 09, 2016
  31. Feb 25, 2016
Loading