X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fweb%2Fsrc%2Ftemplate_parser.c;fp=libs%2Fweb%2Fsrc%2Ftemplate_parser.c;h=60544513151320d0df50c474abcbfc1040704d83;hp=76fb5a7c99af93366c23f54164d28800102e9eb7;hb=f7b4fd2979e3a47c854638e4289883ba15e07705;hpb=e2f3b8923d2771245082a93d170699828c8d7107 diff --git a/libs/web/src/template_parser.c b/libs/web/src/template_parser.c index 76fb5a7c9..605445131 100644 --- a/libs/web/src/template_parser.c +++ b/libs/web/src/template_parser.c @@ -244,7 +244,7 @@ template_format_chunk(struct template_parser *parser, size_t *sz) switch (c->type) { case T_TYPE_TEXT: - escape_luastr(buf, c->s, c->e - c->s, 0); + luastr_escape(buf, c->s, c->e - c->s, 0); break; case T_TYPE_EXPR: @@ -254,15 +254,15 @@ template_format_chunk(struct template_parser *parser, size_t *sz) break; case T_TYPE_INCLUDE: - escape_luastr(buf, c->s, c->e - c->s, 0); + luastr_escape(buf, c->s, c->e - c->s, 0); break; case T_TYPE_I18N: - translate_luastr(buf, c->s, c->e - c->s, 1); + luastr_translate(buf, c->s, c->e - c->s, 1); break; case T_TYPE_I18N_RAW: - translate_luastr(buf, c->s, c->e - c->s, 0); + luastr_translate(buf, c->s, c->e - c->s, 0); break; case T_TYPE_CODE: