mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-19 05:38:54 +01:00
Fixed potential XSS injection vectors in datatables columns
This commit is contained in:
@@ -50,6 +50,6 @@ class SIUnitNumberColumn extends AbstractColumn
|
||||
return '';
|
||||
}
|
||||
|
||||
return $this->formatter->format((float) $value, $this->options['unit'], $this->options['precision']);
|
||||
return htmlspecialchars($this->formatter->format((float) $value, $this->options['unit'], $this->options['precision']));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user