nextcloud/lib/private
Lukas Reschke e867a7d54d Write .htaccess update only if not already written
The ownCloud update routine also runs the "updateHtaccess" code in case only an application gets updated. This leads to having entries multiple time in the .htaccess file leading to unpredictable behaviour.

With 9.0 we added the "#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####" entry to the .htaccess file, this change uses it to ensure that only to the .htaccess gets written if the file has not been modified already. Since the .htaccess modifications are optional this is not a big deal.

Without this change updates of applications can break the rewrite rules (ending in endless redirects) as well as breaking the code integrity checker.
2016-03-17 17:59:28 +01:00
..
activity Happy new year! 2016-01-12 15:02:18 +01:00
app Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
appframework Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
archive Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
backgroundjob Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_* 2016-02-29 09:44:40 +01:00
cache Allow indirect set in CappedMemoryCache 2016-01-14 15:00:41 +01:00
command Happy new year! 2016-01-12 15:02:18 +01:00
comments ucwords does not support delimiter on 5.4 2016-03-04 12:13:16 +01:00
console Update author information 2016-03-01 17:25:15 +01:00
db Prevent certain DBs throwing exceptions on same-value updates 2016-03-15 13:02:19 +01:00
diagnostics Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
encryption Happy new year! 2016-01-12 15:02:18 +01:00
files Ensure that stored version is at least 1 for cross-storage copy 2016-03-16 10:36:15 +01:00
group Make sure that the return value is an array 2016-03-07 11:57:05 +01:00
hooks Happy new year! 2016-01-12 15:02:18 +01:00
http/client Merge pull request #21671 from owncloud/fix-setup-on-master 2016-01-13 10:29:36 +01:00
integritycheck Add support for custom values in integrity checker 2016-03-15 10:41:17 +01:00
l10n Update author information 2016-03-01 17:25:15 +01:00
legacy Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
lock Run cleanup of expired DB file locks to background job 2016-03-04 15:52:23 +01:00
log fix broken logtimezone 2016-03-14 15:10:47 +01:00
mail Happy new year! 2016-01-12 15:02:18 +01:00
memcache Fix errors in memcached implementation 2016-03-14 12:39:34 +01:00
notification Update author information 2016-03-01 17:25:15 +01:00
ocs Happy new year! 2016-01-12 15:02:18 +01:00
preview Move -an after the input arg because it is an output option 2016-02-22 09:40:46 +01:00
repair remove old share propagation entries from appconfig 2016-03-15 12:50:22 +01:00
route Shorter cache key for URL entries 2016-03-14 11:05:46 +01:00
search Use proper URLs for search results 2016-03-12 22:29:47 +01:00
security Explicitly check for port 2016-03-10 22:32:29 +01:00
session Happy new year! 2016-01-12 15:02:18 +01:00
setup Update oci.php 2016-03-16 19:21:14 +01:00
share Generate a valid URL for link notification 2016-03-15 11:10:24 +01:00
share20 Do not recurse link share fetching 2016-03-13 13:31:28 +01:00
systemtag Update author information 2016-03-01 17:25:15 +01:00
tagging Happy new year! 2016-01-12 15:02:18 +01:00
template Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
user Update author information 2016-03-01 17:25:15 +01:00
activitymanager.php Fix IManager::isFormattingFilteredObject() 2016-02-02 10:11:58 +01:00
allconfig.php Update author information 2016-03-01 17:25:15 +01:00
api.php Add DAV authenticated also to other scopes 2016-03-07 11:17:33 +01:00
app.php Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
appconfig.php Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
apphelper.php Happy new year! 2016-01-12 15:02:18 +01:00
archive.php Happy new year! 2016-01-12 15:02:18 +01:00
avatar.php Update author information 2016-03-01 17:25:15 +01:00
avatarmanager.php Update author information 2016-03-01 17:25:15 +01:00
capabilitiesmanager.php Happy new year! 2016-01-12 15:02:18 +01:00
config.php Fix errors after install 2016-01-26 17:06:23 +01:00
contactsmanager.php Happy new year! 2016-01-12 15:02:18 +01:00
databaseexception.php Happy new year! 2016-01-12 15:02:18 +01:00
databasesetupexception.php Happy new year! 2016-01-12 15:02:18 +01:00
datetimeformatter.php Happy new year! 2016-01-12 15:02:18 +01:00
datetimezone.php Happy new year! 2016-01-12 15:02:18 +01:00
db.php Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
defaults.php Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
eventsource.php Happy new year! 2016-01-12 15:02:18 +01:00
filechunking.php Do not check all chunks of a chunked upload if we do not need to 2016-03-07 19:52:30 +01:00
files.php Replace all required values 2016-03-15 10:41:17 +01:00
forbiddenexception.php Happy new year! 2016-01-12 15:02:18 +01:00
group.php Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
helper.php Update author information 2016-03-01 17:25:15 +01:00
hintexception.php Update author information 2016-03-01 17:25:15 +01:00
hook.php Update author information 2016-03-01 17:25:15 +01:00
httphelper.php Happy new year! 2016-01-12 15:02:18 +01:00
image.php Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
installer.php Update author information 2016-03-01 17:25:15 +01:00
json.php Send 401 header for OC_JSON::checkLoggedIn() 2016-02-16 09:48:40 +01:00
largefilehelper.php Happy new year! 2016-01-12 15:02:18 +01:00
log.php Add message key to context of logException 2016-01-15 14:55:30 +01:00
naturalsort.php Happy new year! 2016-01-12 15:02:18 +01:00
naturalsort_defaultcollator.php Happy new year! 2016-01-12 15:02:18 +01:00
navigationmanager.php Happy new year! 2016-01-12 15:02:18 +01:00
needsupdateexception.php Happy new year! 2016-01-12 15:02:18 +01:00
notsquareexception.php Happy new year! 2016-01-12 15:02:18 +01:00
ocs.php Happy new year! 2016-01-12 15:02:18 +01:00
ocsclient.php Merge pull request #21591 from owncloud/add-code-checking-for-apps 2016-01-13 10:35:00 +01:00
preview.php Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
previewmanager.php Happy new year! 2016-01-12 15:02:18 +01:00
repair.php remove old share propagation entries from appconfig 2016-03-15 12:50:22 +01:00
repairexception.php Happy new year! 2016-01-12 15:02:18 +01:00
repairstep.php Happy new year! 2016-01-12 15:02:18 +01:00
response.php Merge pull request #21630 from owncloud/add-some-security-headers-as-hardening 2016-01-13 10:33:58 +01:00
search.php Happy new year! 2016-01-12 15:02:18 +01:00
Server.php Add support for custom values in integrity checker 2016-03-15 10:41:17 +01:00
servercontainer.php Happy new year! 2016-01-12 15:02:18 +01:00
servernotavailableexception.php Happy new year! 2016-01-12 15:02:18 +01:00
serviceunavailableexception.php Happy new year! 2016-01-12 15:02:18 +01:00
setup.php Write .htaccess update only if not already written 2016-03-17 17:59:28 +01:00
streamer.php Remove double URL encoding 2016-03-07 19:29:15 +01:00
subadmin.php Happy new year! 2016-01-12 15:02:18 +01:00
systemconfig.php Update author information 2016-03-01 17:25:15 +01:00
tagmanager.php Happy new year! 2016-01-12 15:02:18 +01:00
tags.php Replace other usages 2016-01-25 17:17:36 +01:00
template.php Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +01:00
templatelayout.php Check if admin user 2016-02-12 14:37:50 +01:00
tempmanager.php Update author information 2016-03-01 17:25:15 +01:00
updater.php Install new shipped apps after upgrading all existing apps 2016-02-23 10:31:11 +01:00
urlgenerator.php Happy new year! 2016-01-12 15:02:18 +01:00
user.php Add DAV authenticated also to other scopes 2016-03-07 11:17:33 +01:00
util.php Revert "Removed unnecessary check 'installed' system value' call." 2016-03-15 10:23:40 +01:00