1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-08-01 06:46:52 +03:00

Improve path validation for repo-* commands.

Check for invalid path in repo-* commands. Perform path validation and throw an error when appropriate. Path may not contain '//'. Strip trailing '/' from path. Absolute path must fall under repo path.
This commit is contained in:
Reid Thompson
2022-03-22 09:50:26 -04:00
committed by GitHub
parent 21cef09dfd
commit 5ae84d5e47
11 changed files with 127 additions and 23 deletions

View File

@ -447,6 +447,14 @@ src/command/remote/remote.h:
class: core
type: c/h
src/command/repo/common.c:
class: core
type: c
src/command/repo/common.h:
class: core
type: c/h
src/command/repo/create.c:
class: core
type: c