It's called Sanitizer


On Thu, May 8, 2014 at 7:33 PM, franklingu <notifications@github.com> wrote:

> In
> src/main/java/teammates/ui/controller/InstructorCourseStudentDetailsEditSaveAction.java:
>
> > @@ -33,6 +33,18 @@ public ActionResult execute() throws EntityDoesNotExistException {
> >          data.student.comments = getRequestParamValue(Const.ParamsNames.COMMENTS);
> >
> >          //TODO: Student's data should be sanitized first (e.g. trimmed for whitespace) before passing to logic
> > +        if (data.student.name != null) {
> > +            data.student.name = data.student.name.trim();
> > +        }
> > +        if (data.student.email != null) {
> > +            data.student.email = data.student.email.trim();
> > +        }
> > +        if (data.student.team != null) {
> > +            data.student.team = data.student.team.trim();
> > +        }
> > +        if (data.student.comments != null) {
> > +            data.student.comments = data.student.comments.trim();
> > +        }
>
> Which is?(I will check this later)
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/TEAMMATES/repo/pull/1815/files#r12424232>
> .
>