Add Signature in ticket reply POST dont add a signature if Internal

This commit is contained in:
johnnyq
2025-10-08 14:48:13 -04:00
parent 27e1d6a9cd
commit e3e7c2e38b
3 changed files with 9 additions and 2 deletions

View File

@@ -1607,6 +1607,8 @@ function getFieldById($table, $id, $field, $escape_method = 'sql') {
// Apply the desired escaping method or auto-detect integer type if using SQL escaping
switch ($escape_method) {
case 'raw':
return $value; // Return as-is from the database
case 'html':
return htmlspecialchars($value ?? '', ENT_QUOTES, 'UTF-8'); // Escape for HTML
case 'json':