diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2023-12-27 15:00:33 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2023-12-27 15:02:44 +0100 |
| commit | 94896025195a7a8795b8a06cc7a3d02ff295fe2f (patch) | |
| tree | f551af9e50d0237c60a2786fccd24db6e7ee60aa /www | |
| parent | 98ce84ca45e25b42c49f6031193920e2c2e8c973 (diff) | |
| download | phorkie-94896025195a7a8795b8a06cc7a3d02ff295fe2f.tar.gz phorkie-94896025195a7a8795b8a06cc7a3d02ff295fe2f.zip | |
Fix downloading of raw files with folder names
Previously an error occured for an URL like
"http://phorkie.cwboo/18/rev-raw/1f656befc962f35c6adbce29f3fe30d8297489e8/foo/bar.ini":
> Some errors in executing git command
> Output: Error: fatal: ambiguous argument '1f656befc962f35c6adbce29f3fe30d8297489e8/foo':
> unknown revision or path not in the working tree.
> Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]'
Diffstat (limited to 'www')
| -rw-r--r-- | www/.htaccess | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/.htaccess b/www/.htaccess index c08ec82..8afcbf7 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -18,7 +18,7 @@ RewriteRule ^([0-9]+)/fork$ fork.php?id=$1 RewriteRule ^([0-9]+)/linkback$ linkback.php?id=$1 RewriteRule ^([0-9]+)/raw/(.+)$ raw.php?id=$1&file=$2 [B] RewriteRule ^([0-9]+)/rev/(.+)$ revision.php?id=$1&rev=$2 [B] -RewriteRule ^([0-9]+)/rev-raw/(.+)/(.+)$ raw.php?id=$1&rev=$2&file=$3 [B] +RewriteRule ^([0-9]+)/rev-raw/([^/]+)/(.+)$ raw.php?id=$1&rev=$2&file=$3 [B] RewriteRule ^([0-9]+)/tool/([^/]+)/(.+)$ tool.php?id=$1&tool=$2&file=$3 [B] RewriteRule ^fork-remote$ fork-remote.php |
