Skip to content
Snippets Groups Projects
  1. Dec 01, 2015
    • Lukas Reschke's avatar
      Set "SetEnv" within base `.htaccess` file · 002e7197
      Lukas Reschke authored
      mod_rewrite as used by the front controller may require a `RewriteBase` in case the installation is done using an alias. Since we cannot enforce a writable `.htaccess` file this will move the `front_controller_active` environment variable into the main .htaccess file. If administrators decide to have this one not writable they can still enable this feature by setting the `front_controller_active` environment variable within the Apache config.
      002e7197
    • Lukas Reschke's avatar
      Support pretty URLs · 2515cb17
      Lukas Reschke authored
      This changeset allows ownCloud to run with pretty URLs, they will be used if mod_rewrite and mod_env are available. This means basically that the `index.php` in the URL is not shown to the user anymore.
      
      Also the not deprecated functions to generate URLs have been modified to support this behaviour, old functions such as `filePath` will still behave as before for compatibility reasons.
      
      Examples:
      http://localhost/owncloud/index.php/s/AIDyKbxiRZWAAjP => http://localhost/owncloud/s/AIDyKbxiRZWAAjP
      http://localhost/owncloud/index.php/apps/files/ => http://localhost/owncloud/apps/files/
      
      Due to the way our CSS and JS is structured the .htaccess uses some hacks for the final result but could be worse... And I was just annoyed by all that users crying for the removal of `index.php` ;-)
      2515cb17
  2. Nov 18, 2015
  3. Oct 15, 2015
  4. Oct 14, 2015
  5. Sep 29, 2015
  6. Aug 16, 2015
  7. Jul 01, 2015
  8. Mar 26, 2015
  9. Mar 19, 2015
  10. Mar 02, 2015
    • Lukas Reschke's avatar
      Let users configure security headers in their Webserver · bbd5f284
      Lukas Reschke authored
      Doing this in the PHP code is not the right approach for multiple reasons:
      
      1. A bug in the PHP code prevents them from being added to the response.
      2. They are only added when something is served via PHP and not in other cases (that makes for example the newest IE UXSS which is not yet patched by Microsoft exploitable on ownCloud)
      3. Some headers such as the Strict-Transport-Security might require custom modifications by administrators. This was not possible before and lead to buggy situations.
      
      This pull request moves those headers out of the PHP code and adds a security check to the admin settings performed via JS.
      bbd5f284
  11. Feb 27, 2015
  12. Feb 23, 2015
  13. Feb 21, 2015
  14. Feb 10, 2015
  15. Jan 28, 2015
  16. Jan 22, 2015
  17. Jan 08, 2015
    • Lukas Reschke's avatar
      Add version to .htaccess · 7fbb7f4d
      Lukas Reschke authored
      Currently if a user does not replace the .htaccess file with the new update this can lead to serious problems in case Apache is used as webserver.
      
      This commit adds the version to the .htaccess file and the update routine fails in case not the newest version is specified in there. This obviously means that every release has to update the version specified in .htaccess as well. But I see no better solution for it.
      
      Conflicts:
      	lib/private/updater.php
      7fbb7f4d
  18. Jan 05, 2015
  19. Nov 27, 2014
  20. Oct 14, 2014
  21. Jun 16, 2014
  22. Jun 05, 2014
    • Lukas Reschke's avatar
      Remove legacy routing code · ac7fb1b2
      Lukas Reschke authored
      The getfile routing code was absolutely legacy and not needed anymore. Additionally \OC::$REQUESTEDAPP was never set to the actually accessed application.
      
      This commit removes the legacy routing code and ensures that $REQUESTEDAPP is always set so that other applications (e.g. the firewall or a two-factor authentication) can intercept the currently accessed app.
      
      Testplan:
      [x] Installation works
      [x] Login with DB works
      [x] Logout works
      [x] Login with alternate backend works (tested with user_webdavauth)
      [x] Other apps are accessible
      [x] Redirect on login works (e.g. index.php?redirect_url=%2Fcore%2Findex.php%2Fsettings%2Fapps%3Finstalled)
      [x] Personal settings are accessible
      [x] Admin settings are accessible
      [x] Sharing files works
      [x] DAV works
      [x] OC::$REQUESTEDAPP contains the requested application and can be intercepted by other applications
      ac7fb1b2
  23. Apr 28, 2014
  24. Feb 28, 2014
    • Lukas Reschke's avatar
      Remove .htaccess creation code · 357fdb1a
      Lukas Reschke authored
      1. We're maintaining the same code twice which leads inevitably to problems as this one. The createHtaccess routine is only used to use the correct paths to the 404 and 403 document.
      2. Updating the ownCloud instance as described in our documentation (`Delete everything from your ownCloud installation directory, except data and config.`) will break the links to the ErrorDocuments anyways and show the default error handlers if ownCloud is not installed in the root directory.
      357fdb1a
  25. Feb 20, 2014
  26. Jan 23, 2014
  27. Jan 08, 2014
  28. May 09, 2013
  29. Apr 24, 2013
  30. Mar 08, 2013
    • Myles McNamara's avatar
      remove php_value · ef2e8402
      Myles McNamara authored
      php_value can only be used with mod_php, using it with FCGI will cause 500 Internal Server errors.  This needs to be set in php.ini manually or set using ini_set().
      ef2e8402
  31. Feb 27, 2013
  32. Feb 26, 2013
Loading