summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-04-02 07:02:47 -0700
committerStan Hu <stanhu@gmail.com>2015-04-02 07:02:47 -0700
commitb277f23a538ffbbf100719f4d7434a9e458d5b5e (patch)
tree773c37b9314f715c55f9bc483a0ab8690fd3aecc /lib
parent2a0d38c03fa20979a92597fdff18989c2b8e106b (diff)
downloadgitlab-ce-b277f23a538ffbbf100719f4d7434a9e458d5b5e.tar.gz
Improve regexp to prevent false positives
If a filename happened to contain "db" and enough "rwx" characters before, then this test would previously fail. For example: ``` drwxr-xr-x gitlab-runner/gitlab-runner 0 2015-04-02 07:46 uploads/tmp/cassidy.stokes8477/gitlabhq/36d972fa55d6b44810fc6fd843473adb/ ``` Adding a space before the "db" match string tightens up the regexp and reduces the chance of unintended match.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions