Update gs_bbox.cpp

This commit is contained in:
Eao3piq4e 2022-08-04 13:31:26 +08:00
parent 54de7afd7d
commit 88840f46d2
1 changed files with 9 additions and 5 deletions

View File

@ -327,7 +327,6 @@ static List* split_string_into_blacklist(const char* source)
return result;
}
bool check_bbox_blacklist(char** newval, void** extra, GucSource source)
{
if (t_thrd.proc_cxt.MyProcPid != PostmasterPid)
@ -465,10 +464,15 @@ void bbox_blacklist_remove(BlacklistIndex item, void* addr)
}
/*
* @Description: check the value from environment variablethe to prevent command injection.
* @in input_env_value : the input value need be checked.
*
*/
function name: CheckFilenameValid
description: Check if the filename is in line with norms, or if dangerous characters appear
the filename is invalid.
arguments: A pointer to string indicating filename.
return value: An integer, if function works normally, the value is RET_OK, else it's RET_ERR.
note: none
date: 2022/8/4
contact tel: 18720816902
*/
int CheckFilenameValid(const char* inputEnvValue)
{
const int maxLen = 1024;