removing the second regex path check from the checking function, superseded

superseded by the function call stripping '../'