diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-12-02 13:57:05 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-12-02 13:57:05 +0100 |
commit | e8465b3e4f010248e32a7dfb1e73a32c764aa30d (patch) | |
tree | 8100b29942dfa623cc2ef1a92b43df637fe93d35 /modules | |
parent | 9b30357454ea53a9f1d7e82d8f894db5f409de98 (diff) | |
parent | 09768ed74596e70ab7270a6eb7c96fa4afd1d85d (diff) |
Merge pull request #565 from yousong/l2tp-server
Allow host:port value for l2tp `server` option
Diffstat (limited to 'modules')
-rw-r--r-- | modules/luci-base/luasrc/view/cbi/value.htm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/luasrc/view/cbi/value.htm b/modules/luci-base/luasrc/view/cbi/value.htm index 8a08e08f2f..c43dab5f4b 100644 --- a/modules/luci-base/luasrc/view/cbi/value.htm +++ b/modules/luci-base/luasrc/view/cbi/value.htm @@ -29,7 +29,7 @@ <%- end -%>'); <%- end %> <% if self.datatype then -%> - cbi_validate_field('<%=cbid%>', <%=tostring((self.optional or self.rmempty) == true)%>, '<%=self.datatype:gsub("'", "\\'")%>'); + cbi_validate_field('<%=cbid%>', <%=tostring((self.optional or self.rmempty) == true)%>, '<%=self.datatype:gsub("\\", "\\\\"):gsub("'", "\\'")%>'); <%- end %> //]]></script> <% end -%> |