Commit 2b4627fc authored by Kevin Stover's avatar Kevin Stover Committed by GitHub

Fixing a bug that caused single quotes to fail when editing a submission. Closes #2443. (#2639)

parent b4b245f4
......@@ -168,7 +168,7 @@ abstract class NF_Abstracts_Field
*/
public function admin_form_element( $id, $value )
{
return "<input class='widefat' name='fields[$id]' value='$value' />";
return '<input class="widefat" name="fields[' . $id . ']" value="' . htmlentities( $value ) . '" />';
}
public function get_name()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment