Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab3ebf101f | ||
|
|
1875623f05 | ||
|
|
ac6240a3a3 | ||
|
|
ae407492bc |
No files matched your search
+3
-3
@@ -24,10 +24,10 @@ maintenance 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
|
||||
fix/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
|
||||
improve/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev
|
||||
|
||||
# staging/bugfix is the branch for preparation of the 1.8.5 bugfix release
|
||||
# staging/bugfix is the branch for preparation of the 1.8.6 bugfix release
|
||||
# so are any bug/... branches
|
||||
staging/bugfix 1.8.5 27a576e352a9b3d9abee89ab92cd02012c0e39dd pep440-dev
|
||||
bug/.* 1.8.5 27a576e352a9b3d9abee89ab92cd02012c0e39dd pep440-dev
|
||||
staging/bugfix 1.8.6 395354212c2bb65b37b303de171418f6475ca346 pep440-dev
|
||||
bug/.* 1.8.6 395354212c2bb65b37b303de171418f6475ca346 pep440-dev
|
||||
|
||||
# staging/maintenance is currently the branch for preparation of 1.8.0rc6
|
||||
# so is regressionfix/...
|
||||
|
||||
@@ -381,16 +381,21 @@ class BackupPlugin(
|
||||
)
|
||||
from octoprint.util import is_hidden_path
|
||||
|
||||
plugin_folder = self.get_plugin_data_folder()
|
||||
|
||||
def path_check(path):
|
||||
joined = os.path.join(plugin_folder, path)
|
||||
return not is_hidden_path(joined) and self._valid_backup(joined)
|
||||
|
||||
return [
|
||||
(
|
||||
r"/download/(.*)",
|
||||
LargeResponseHandler,
|
||||
{
|
||||
"path": self.get_plugin_data_folder(),
|
||||
"path": plugin_folder,
|
||||
"as_attachment": True,
|
||||
"path_validation": path_validation_factory(
|
||||
lambda path: not is_hidden_path(path)
|
||||
and self._valid_backup(path),
|
||||
path_check,
|
||||
status_code=404,
|
||||
),
|
||||
"access_validation": access_validation_factory(
|
||||
|
||||
@@ -18,10 +18,10 @@ from octoprint.util.version import (
|
||||
)
|
||||
|
||||
SENTRY_URL_SERVER = (
|
||||
"https://ed6946a2c4f344738768ac7f34ce27df@o118517.ingest.sentry.io/1373987"
|
||||
"https://faa02914ec8f42139e12a36482cfdb60@o118517.ingest.sentry.io/1373987"
|
||||
)
|
||||
SENTRY_URL_COREUI = (
|
||||
"https://1b37bf389cbc4150890838f99c42adab@o118517.ingest.sentry.io/1374096"
|
||||
"https://be7a53389fb045b48d6c384bb8ee89eb@o118517.ingest.sentry.io/1374096"
|
||||
)
|
||||
|
||||
SETTINGS_DEFAULTS = {
|
||||
|
||||
Reference in new issue
Block a user