Added input sanitisation to analysis->save query to prevent presistent X...

...SS vulnerability