function clearSearching()
{
    var formName = 'search';

    var elements = document.forms[formName].elements;
    for (i=0; i < elements.length; i++)
    {
        var this_input_type =   elements[i].type;
        var this_input_tag  =   elements[i].tagName;

        if(this_input_tag == 'INPUT')
        {
            if(this_input_type != 'hidden')
            {
                if(this_input_type == 'text')
                {
                    elements[i].value = '';
                }
                else if(this_input_type == 'checkbox' || this_input_type == 'radio')
                {
                    elements[i].checked = false;
                }
            }
        }
        else if(this_input_tag == 'SELECT')
        {
            // elements[i].selected = false;
            elements[i].value = '';
        }
        else if(this_input_tag == 'TEXTAREA')
        {
            elements[i].innerHTML = '';
        }

        // console.log(elements[i]);
        // console.log(this_input_type);
        // console.log(this_input_tag);
    }

    document.getElementById(formName). submit();
}
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.