mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-01 14:47:38 +00:00
df8ec22662
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.go | ||
alert_test.go | ||
alertmanager.go | ||
alertmanager_request.qtpl | ||
alertmanager_request.qtpl.go | ||
alertmanager_test.go | ||
config.go | ||
config_test.go | ||
config_watcher.go | ||
config_watcher_test.go | ||
init.go | ||
notifier.go | ||
package_test.go |