BeanShell support

This commit is contained in:
Mihai Pitu 2013-09-18 17:48:12 +01:00 committed by Felipe Zimmerle
parent 90856f42b6
commit 28e6ad8963

View File

@ -2214,7 +2214,6 @@ static apr_status_t msre_action_exec_execute(modsec_rec *msr, apr_pool_t *mptmp,
const char *start = "java -classpath bsh*.jar bsh.Interpreter ";
char *command = (char*) apr_palloc(mptmp, strlen(start) + lenparam + 1);
msr_log(msr, 1, "beanshell ftw");
strcpy(command, start);
strcat(command, action->param);
command[strlen(start) + lenparam] = '\0';