frp/pkg
Michael Hanselmann 8a0fd2acd5 Use text/template instead of html/template for config pre-processing
Commit c95311d1 added support for multiple config formats in addition to
pre-processing using Go's built-in templating system. The
`html/template` package is equivalent to `text/template`, except that
the former automatically escapes characters for inclusion in HTML.

Configurations aren't plain text, but they're also certainly no HTML.
The difference between the packages is noticeable when using `printf
"%q"` for quoting of strings. An example from the included unittest:

* `html/template`: `key = "with space"`
* `text/template`: `key = "with space"`

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2025-02-04 22:30:05 +01:00
..
auth support multiple subjects in oidc ping (#4475) 2024-10-12 18:52:47 +08:00
config Use text/template instead of html/template for config pre-processing 2025-02-04 22:30:05 +01:00
errors rename models to pkg (#2005) 2020-09-23 13:49:14 +08:00
metrics use new log package (#4054) 2024-03-12 13:58:53 +08:00
msg client, pkg, server, test: replaced 'interface{}' with 'any' (#4611) 2025-01-02 11:24:08 +08:00
nathole samber lo version up (#4569) 2024-12-02 11:56:52 +08:00
plugin client, pkg, server, test: replaced 'interface{}' with 'any' (#4611) 2025-01-02 11:24:08 +08:00
proto/udp lint by golangci-lint (#3080) 2022-08-29 01:02:53 +08:00
sdk/client added a 30s timeout for frpc subcommands to avoid long delays (#4359) 2024-07-30 18:12:22 +08:00
ssh client: add StatusExporter in service (#4182) 2024-04-25 20:20:39 +08:00
transport sshTunnelGateway refactor (#3784) 2023-11-22 14:35:37 +08:00
util client, pkg, server, test: replaced 'interface{}' with 'any' (#4611) 2025-01-02 11:24:08 +08:00
virtual optimize some code (#3801) 2023-11-27 15:47:49 +08:00