mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-20 10:57:09 +00:00
go1.24: fix lint, unit and system tests
- development env: base on debian trixie with go1.24 - lint: run with default config - fix lint errors - fix unit tests - fix system test
This commit is contained in:
1 parent
ae5379d84a
commit
f7057a9517
117 files changed
+803
-727
No files matched your search
+1
-1
@@ -24,7 +24,7 @@ func DirIsAccessible(filename string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Remove leading '/', remove '..', '$' and '`'
|
||||
// SanitizePath removes leading '/', remove '..', '$' and '`'
|
||||
func SanitizePath(path string) (result string) {
|
||||
result = strings.Replace(path, "..", "", -1)
|
||||
result = strings.Replace(result, "$", "", -1)
|
||||
|
||||
Reference in new issue
Block a user