navtable/navtable — comment on commit e5e0a833920e85f0c4ec72b271097ff1e53483f4
File: src/es/udc/cartolab/gvsig/navtable/contextualmenu/StringFilterActionListener.java line 83
By amaneiro:

See this thread: http://stackoverflow.com/questions/1812891/java-escape-string-to-prevent-sql-injection

AFAIK, that's not possible in our case as we have to use filters API. The question is... is there any method in the API to check the validity of an expression before executing it? I'm thinking on ...

//after line 92
if(filterExt.isValid(expr)){
filterExt.newSet(expr);
} else {
//show a warning
}

If we cannot do that, I guess filterExt will launch an error, so we should catch it an show a warning.