From d6021190753ddc9834ce2763373c592c258e37df Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Sun, 21 May 2017 21:30:25 +0200 Subject: Escape text input before sending to server Fixes #15. --- src/scripts/controllers/simulationcontroller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scripts/controllers/simulationcontroller.ts') diff --git a/src/scripts/controllers/simulationcontroller.ts b/src/scripts/controllers/simulationcontroller.ts index 2652d5d4..69997047 100644 --- a/src/scripts/controllers/simulationcontroller.ts +++ b/src/scripts/controllers/simulationcontroller.ts @@ -2,7 +2,7 @@ /// import * as $ from "jquery"; import {MapView} from "../views/mapview"; -import {MapController, InteractionLevel, AppMode} from "./mapcontroller"; +import {AppMode, InteractionLevel, MapController} from "./mapcontroller"; import {Util} from "../util"; import {StateCache} from "./simulation/statecache"; import {ChartController} from "./simulation/chart"; @@ -312,7 +312,7 @@ export class SimulationController { const newExperiment: IExperiment = { id: -1, - name: nameInput.val(), + name: nameInput.text(), pathId: parseInt($("#new-experiment-path-select").val()), schedulerName: $("#new-experiment-scheduler-select").val(), traceId: parseInt($("#new-experiment-trace-select").val()), -- cgit v1.2.3