diff options
| author | 2025-10-26 08:39:37 +0100 | |
|---|---|---|
| committer | 2025-10-26 08:39:37 +0100 | |
| commit | a4397db4c20056df0e357dedd6496a59b9a59b68 (patch) | |
| tree | d03c6c7ea6303e21c212ce4fc5723b565c0ef781 /src/env | |
| parent | 3286ed7ae6dc9135995a37402ab9bc2a6803c8bb (diff) | |
Enhanced jail_escape logic and allowed also dots for repo names. Fixed - in repo names
Diffstat (limited to 'src/env')
| -rw-r--r-- | src/env | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ +#!/usr/bin/env fish + set _REPO_PERMISSIONS_FILE /etc/repo-permissions -set _REPO_VALIDATION_REGEX "((?:\/[a-zA-Z0-9_-]+)+.git)" +set _REPO_VALIDATION_REGEX "((?:\/[a-zA-Z0-9_\-\.]+)+.git)" set _GIT_VALIDATION_REGEX "^(git-(?:upload-pack|receive-pack|upload-archive)) '$_REPO_VALIDATION_REGEX'\$" set _GIT_SUDO_GROUP gitsudo set _LOG /var/log/run.txt |
