Fix document generate
This commit is contained in:
parent
121abf8bf1
commit
2a1a971636
1 changed files with 2 additions and 1 deletions
|
|
@ -1800,6 +1800,7 @@ class Document
|
|||
static function replace_value($p_buffer, $p_pattern, $p_value, $p_limit=-1, $p_type='OOo')
|
||||
{
|
||||
$check=$p_pattern;
|
||||
$p_value=$p_value??'';
|
||||
$check=str_replace(['<', '>', '<', '>', '='], "", $check);
|
||||
if (preg_replace('/[^[:alnum:]^_]/', '', $check)!=$check)
|
||||
{
|
||||
|
|
@ -1822,7 +1823,7 @@ class Document
|
|||
}
|
||||
if ($count==0)
|
||||
{
|
||||
$p_value='';
|
||||
|
||||
if ($p_type=='OOo')
|
||||
{
|
||||
$p_value=noalyss_str_replace('&', '&', $p_value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue