* Modify builds api.

This commit is contained in:
songchenxuan
2023-06-21 11:21:36 +08:00
parent 1b19258bfc
commit 2106458175
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -454,7 +454,7 @@ class baseEntry
/* Use htmlspecialcharts for rich text fields. */
foreach($fields as $field)
{
if(in_array($field, array('desc', 'spec', 'verify', 'steps'))) $_POST[$field] = htmlspecialchars($_POST[$field]);
if(in_array($field, array('desc', 'spec', 'verify', 'steps')) and isset($_POST[$field])) $_POST[$field] = htmlspecialchars($_POST[$field]);
}
}