From 8817af07fb72fd78fb753fe5d069d0a65a79742f Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Thu, 24 Nov 2022 17:56:43 -0500 Subject: Deprecate special handling of `${key}` syntax in metadata values (#12970) --- src/util/string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util') diff --git a/src/util/string.h b/src/util/string.h index 80eea754c..4c7a4068d 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -459,6 +459,7 @@ inline void str_formspec_escape(std::string &str) str_replace(str, "[", "\\["); str_replace(str, ";", "\\;"); str_replace(str, ",", "\\,"); + str_replace(str, "$", "\\$"); } /** -- cgit v1.2.3