diff options
Diffstat (limited to 'includes/functions/functions_edit.php')
| -rw-r--r-- | includes/functions/functions_edit.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/functions/functions_edit.php b/includes/functions/functions_edit.php index 6708492638..1bc0e9f18c 100644 --- a/includes/functions/functions_edit.php +++ b/includes/functions/functions_edit.php @@ -1269,7 +1269,8 @@ function add_simple_tag($tag, $upperlevel='', $label='', $readOnly='', $noClose= if (empty($linkToID)) $linkToID = $pid; $subnamefacts = array("NPFX", "GIVN", "SPFX", "SURN", "NSFX", "_MARNM_SURN"); - @list($level, $fact, $value) = explode(' ', $tag); + preg_match('/^(?:(\d+) ('.WT_REGEX_TAG.') ?(.*))/', $tag, $match); + list(, $level, $fact, $value) = $match; // element name : used to POST data if ($level==0) { |
