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