diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-04-17 15:38:28 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-04-18 16:21:27 +0200 |
commit | 1d5a3123ed63777e2d40250fba99cf8cf2f58476 (patch) | |
tree | e81b138521354ed42e5dfaf9f88af703d9652699 /modules/luci-base/src/template_utils.h | |
parent | 59dea0230cbbea75459c4e61d1da64629d1da31b (diff) |
Revert "luci-base: add urldecode() and urlencode() C implementations"
This reverts commit ad7dc4a4928e77ae142d0fe040f9e9e64b530e82.
Since we're using liblucihttp now, that library is the appropriate place to
add such decoding helper functions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/src/template_utils.h')
-rw-r--r-- | modules/luci-base/src/template_utils.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/luci-base/src/template_utils.h b/modules/luci-base/src/template_utils.h index 872ecb072f..32a79f93bc 100644 --- a/modules/luci-base/src/template_utils.h +++ b/modules/luci-base/src/template_utils.h @@ -1,7 +1,7 @@ /* * LuCI Template - Utility header * - * Copyright (C) 2010-2018 Jo-Philipp Wich <jo@mein.io> + * Copyright (C) 2010-2012 Jo-Philipp Wich <jow@openwrt.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,8 +22,6 @@ #include <stdlib.h> #include <stdio.h> #include <string.h> -#include <stdbool.h> -#include <ctype.h> /* buffer object */ @@ -44,8 +42,6 @@ char * buf_destroy(struct template_buffer *buf); char * utf8(const char *s, unsigned int l); char * pcdata(const char *s, unsigned int l); char * striptags(const char *s, unsigned int l); -char * urlencode(const char *s, size_t *encoded_len); -char * urldecode(const char *s, size_t *decoded_len, bool keep_plus); void luastr_escape(struct template_buffer *out, const char *s, unsigned int l, int escape_xml); void luastr_translate(struct template_buffer *out, const char *s, unsigned int l, int escape_xml); |