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> |
7 years ago | |
---|---|---|
.. | ||
db | Update with robin | 8 years ago |
group | Update with robin | 8 years ago |
l10n | Fix more tests | 7 years ago |
ocs | Remove unused private classes | 8 years ago |
template | Fix preview URLs | 7 years ago |
user | Fix others | 8 years ago |
api.php | prevent infinite redirect loops if the there is no 2fa provider to pass | 7 years ago |
app.php | Don't use cached informations for app version | 7 years ago |
db.php | Kill update simulation | 7 years ago |
defaults.php | Cahnge URL for desktop clients directly to pop-up | 7 years ago |
eventsource.php | Update with robin | 8 years ago |
filechunking.php | Update with robin | 8 years ago |
files.php | Keep the filemtime for files when downloading them in a zip/tar | 7 years ago |
group.php | Update with robin | 8 years ago |
helper.php | Remove checks whether OC is running on Windows pt. 2 | 7 years ago |
hook.php | Update with robin | 8 years ago |
image.php | Fix avatar on exif rotated images | 7 years ago |
json.php | prevent infinite redirect loops if the there is no 2fa provider to pass | 7 years ago |
ocs.php | Return 404 on v2.php when the app is disabled | 7 years ago |
response.php | Add nonce also to legacy CSP | 7 years ago |
template.php | Add jquery ui fixes js file | 7 years ago |
user.php | bring back remember-me | 7 years ago |
util.php | Properly check the data dir | 7 years ago |