diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-07-18 20:11:58 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-07-18 20:11:58 -0400 |
commit | 78861aff93db4f705b0dfdaf545c26689593fdec (patch) | |
tree | bb283721cd448e73c922a10c472d628f55f5961c /blog.c | |
parent | 6cc006e821030853640030ded24b11e27f2d4ec7 (diff) |
keep urls all lower case
Diffstat (limited to 'blog.c')
-rw-r--r-- | blog.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ int handle_post(void) char *end = stpcpy(uri, ymd); *end++ = '/'; for (char *f = title; *f != '\0'; f++) { - *end++ = isalnum(*f) ? *f : '-'; + *end++ = isalnum(*f) ? tolower(*f) : '-'; } int newpost = openat(blogdir, uri, O_WRONLY | O_CREAT, 0644); |