gitea/modules
zeripath f104898989 Allow to merge if file path contains " or \ (#8629) (#8772)
* if a filename in a repository contains " or \ the owner can't merge pull request with this files
because "git diff-tree" adds double quotes to that filepath
example: filepath is ab"cd but "git diff-tree" returns "ab\"cd"

now, when the owner click "Merge Pull Request" button the server returns 500
this commit fix it

Signed-off-by: Ilya Pavlov <ilux@cpan.org>

* add -z option to getDiffTree
escape spec symbols for sparse-checkout

Signed-off-by: Ilya Pavlov <ilux@cpan.org>

* go fmt

Signed-off-by: Ilya Pavlov <ilux@cpan.org>

* typo

Signed-off-by: Ilya Pavlov <ilux@cpan.org>

* escape '\'
escape all spaces and '!'

* use regexp.ReplaceAllString()

Signed-off-by: Ilya Pavlov <ilux@cpan.org>

* strings.ReplaceAll was added in go 1.12

Signed-off-by: Ilya Pavlov <ilux@cpan.org>

* add '\' to regexp.MustCompile

Signed-off-by: Ilya Pavlov <ilux@cpan.org>
2019-11-01 13:50:49 -04:00
..
auth Abort syncrhonization from LDAP source if there is some error. (#7965) 2019-08-25 02:59:21 +02:00
avatar Improve handling of non-square avatars (#7025) 2019-05-25 14:46:14 +03:00
base API error cleanup (#7186) 2019-06-12 17:07:24 -04:00
cache Add golangci (#6418) 2019-06-12 15:41:28 -04:00
context Use AppSubUrl for more redirections (#8647) (#8652) 2019-10-23 18:26:54 -04:00
cron Better logging (#6038) (#6095) 2019-04-02 08:48:31 +01:00
generate Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
git IsBranchExist: return false if provided name is empty (#8485) (#8492) 2019-10-13 20:23:43 +03:00
gzip Add golangci (#6418) 2019-06-12 15:41:28 -04:00
highlight Add Rust highlighting (#7125) 2019-06-04 17:01:47 -04:00
httplib Add golangci (#6418) 2019-06-12 15:41:28 -04:00
indexer Add golangci (#6418) 2019-06-12 15:41:28 -04:00
lfs Ensure Request Body Readers are closed in LFS server (#8454) (#8459) 2019-10-11 17:11:06 +01:00
log Fix data race (#8206) 2019-09-17 12:40:28 +03:00
mailer Add golangci (#6418) 2019-06-12 15:41:28 -04:00
markup feat: highlight issue references with : (#8101) (#8404) 2019-10-06 23:41:46 -04:00
metrics Prometheus endpoint (#5256) 2018-11-04 22:20:00 -05:00
migrations fix bug when migrating a private repository (#7917) (#8403) 2019-10-07 00:58:35 -04:00
minwinsvc Fix Git hooks not being executed on Windows when running as a service (#1149) 2017-03-09 09:27:43 +08:00
notification Add golangci (#6418) 2019-06-12 15:41:28 -04:00
options Use vfsgen instead of go-bindata (#7080) 2019-06-03 00:43:47 +03:00
pprof Add golangci (#6418) 2019-06-12 15:41:28 -04:00
private Attempt to fix hook problem (#7856) 2019-08-14 17:43:02 +08:00
process Restore functionality for early gits (#7775) (#8476) 2019-10-13 12:40:13 +08:00
public Use vfsgen instead of go-bindata (#7080) 2019-06-03 00:43:47 +03:00
pull Allow to merge if file path contains " or \ (#8629) (#8772) 2019-11-01 13:50:49 -04:00
recaptcha Allow Recaptcha service url to be configured (#6820) 2019-05-02 16:09:39 +03:00
repofiles Fix #8582 by handling empty repos (#8587) (#8593) 2019-10-19 22:07:12 +03:00
search Global code search support (#3664) 2018-03-16 22:04:33 +08:00
secret Integrate OAuth2 Provider (#5378) 2019-03-08 11:42:50 -05:00
session Add golangci (#6418) 2019-06-12 15:41:28 -04:00
setting Make captcha and password optional for external accounts (#6606) 2019-07-06 15:48:02 -04:00
ssh Add golangci (#6418) 2019-06-12 15:41:28 -04:00
structs Be more strict with git arguments (#7715) (#7762) 2019-08-05 22:05:48 -04:00
sync Fix status table race condition (#1835) 2017-05-31 16:57:17 +08:00
templates Add golangci (#6418) 2019-06-12 15:41:28 -04:00
test move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) 2019-03-27 17:33:00 +08:00
user Add golangci (#6418) 2019-06-12 15:41:28 -04:00
util Handle insecure and ports in go get (#7041) 2019-05-27 22:08:38 +01:00
validation Add golangci (#6418) 2019-06-12 15:41:28 -04:00