diff options
| author | 2025-10-26 08:39:37 +0100 | |
|---|---|---|
| committer | 2025-10-26 08:39:37 +0100 | |
| commit | 7dd18234861d3de62e1ddd2887f7bdb9e2b891c6 (patch) | |
| tree | d03c6c7ea6303e21c212ce4fc5723b565c0ef781 /src/env | |
| parent | 80b4d4065fe7cd259d767b4439db7ed0da23880a (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 |
