]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-dict-extra: dict-fs - Escape unsafe paths
authorAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 8 Jun 2021 06:13:25 +0000 (09:13 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Tue, 8 Jun 2021 10:04:21 +0000 (13:04 +0300)
commit9b0df0b5782c9ef97b744fc18e9ec57a92d48f2b
treefa518ca010ecc532557beed68a81f029938b3a00
parent213f2fcd80f244c402fb05caf4cb7c7a521dec9a
lib-dict-extra: dict-fs - Escape unsafe paths

Change any path components that are `.` or `..` to `...` and `....`.
Prevents path traversal attacks.
src/lib-dict-extra/Makefile.am
src/lib-dict-extra/dict-fs.c
src/lib-dict-extra/test-dict-fs.c [new file with mode: 0644]