diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2022-01-18 12:52:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-18 12:52:27 +0200 |
commit | 25e6d4d4597d6ca06503d5fa76af0e4e1b57302e (patch) | |
tree | 66e78300bc0ec4983c0223e17a3065aa6793146c /src/util.c | |
parent | 51f9bed3dd8d35a59e9124e49450c9795822dbf5 (diff) | |
download | redis-25e6d4d4597d6ca06503d5fa76af0e4e1b57302e.tar.gz |
Fix additional AOF filename issues. (#10110)
This extends the previous fix (#10049) to address any form of
non-printable or whitespace character (including newlines, quotes,
non-printables, etc.)
Also, removes the limitation on appenddirname, to align with the way
filenames are handled elsewhere in Redis.
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/util.c b/src/util.c index 525146589..75086db42 100644 --- a/src/util.c +++ b/src/util.c @@ -904,16 +904,6 @@ sds makePath(char *path, char *filename) { return sdscatfmt(sdsempty(), "%s/%s", path, filename); } -int includeSpace(char *s) { - if (s == NULL) return 0; - for (size_t i = 0; i < strlen(s); i++) { - if (isspace(s[i])) { - return 1; - } - } - return 0; -} - #ifdef REDIS_TEST #include <assert.h> |