nextcloud/lib
Lukas Reschke 32bf8ec826
Don't use cached informations for app version
When installing an app from the appstore the `\OC_App::getAppVersion` code is triggered twice:

- First when the downloader tries to compare the current version to the new version on the appstore to check if there is a newer version. This protects against downgrade attacks and is implemented in `\OC\Installer::downloadApp`.
- Second, when the app is actually installed the current version is written to the database. (`\OC\Installer::installApp`)

This fails however when the version is actually cached. Because in step 1 the cached version will be set to "0" and then be reused in the second step.

While this is probably not the cleanest version I assume this is an approach that is least invasive. Feedback and suggestions welcome :)

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-09 18:01:45 +01:00
..
composer Update class map 2016-11-18 12:10:51 +01:00
l10n [tx-robot] updated from transifex 2016-12-04 01:07:30 +00:00
private Don't use cached informations for app version 2016-12-09 18:01:45 +01:00
public Merge pull request #2437 from nextcloud/update-notification-icons 2016-12-02 20:05:50 +01:00
autoloader.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +01:00
base.php Merge pull request #2322 from nextcloud/compat-with-chrome54 2016-11-25 12:00:56 +01:00