summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-14 18:14:03 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-14 18:14:03 +0100
commitd37076a33296877fee3154db689f2990785aed94 (patch)
tree32a5eac40012a92c05eea81d401147b00fe18bef /src/util.h
parent8a7f76e7a1b404dc7f703d09d724defaee9e4238 (diff)
Escape all user-input strings when writing configuration.cc
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 45f69d4..3ebef41 100644
--- a/src/util.h
+++ b/src/util.h
@@ -22,3 +22,5 @@ void append(T& a, const T& b)
}
ctor::target_type target_type_from_extension(const std::filesystem::path& file);
+
+std::string esc(const std::string& in);