mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-22 08:26:19 +01:00
7ae038766c
Previously the `quotesEscape` function was escaping only double quotes. This wasn't enough, since the input string could contain other special chars, which must be escaped when put inside JSON string. For example, carriage return and line feed chars (\n\r), backslash char, etc. This led to the following issues, which were improperly fixed: - https://github.com/VictoriaMetrics/VictoriaMetrics/issues/890 - this issue was "fixed" by introducing the `crlfEscape` function, which led to unnecessary complications in user templates, while not fixing various corner cases such as backslash chars in the input string. See |
||
---|---|---|
.. | ||
testdata | ||
alert_test.go | ||
alert.go | ||
alertmanager_request.qtpl | ||
alertmanager_request.qtpl.go | ||
alertmanager_test.go | ||
alertmanager.go | ||
config_test.go | ||
config_watcher_test.go | ||
config_watcher.go | ||
config.go | ||
init.go | ||
notifier.go | ||
package_test.go |