⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
nginx
/
src
/
ngx_devel_kit
/
src
/
View File Name :
ndk_encoding.c
char * ndk_conf_set_encoding_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { char *p = conf; ndk_encoding_t *ep; ngx_str_t *value; size_t len; iconv_t ic; ep = (ndk_encoding_t *) (p + cmd->offset); if (ep->from && ep->to) return "is duplicate"; value = cf->args->elts; if (ep->from) { ep->to = (char *) value[1].data; len = strlen (ep->from); } else if (ep->to) { ep->from = (char *) value[1].data; len = strlen (ep->to); } else { return "has no base encoding"; } if (len == value[1].len && !strncasecmp (ep->to, ep->from, len)) { ngx_log_error (NGX_LOG_WARN, cf->log, 0, "\"%V\" '%V' encoding is ignored (no conversion)", &value[0], &value[1]); return NGX_CONF_OK; } ic = iconv_open (ep->to, ep->from); if (ic == (iconv_t)-1) return "has an invalid encoding"; if (iconv_close (ic)) { ngx_log_error (NGX_LOG_EMERG, cf->log, errno, "iconv_close()"); return NGX_CONF_ERROR; } return NGX_CONF_OK; }