containsUnsafePathSegments will return true if the string is a directory reference like `.` and `..` or if any path separator character like `/` and `\` can be found.
(id string)
| 65 | // reference like `.` and `..` or if any path separator character like `/` and |
| 66 | // `\` can be found. |
| 67 | func containsUnsafePathSegments(id string) bool { |
| 68 | // handle the relative reference to current and parent path. |
| 69 | return id == "." || id == ".." |
| 70 | } |
| 71 | |
| 72 | func (t *SingleResolver) TenantID(ctx context.Context) (string, error) { |
| 73 | //lint:ignore faillint wrapper around upstream method |
no outgoing calls
no test coverage detected