fpdm icon indicating copy to clipboard operation
fpdm copied to clipboard

Don't replace fields containing parentheses

Open NithoPamc opened this issue 4 years ago • 0 comments

Hi,

I am new to FPDM and have a problem the first time I use it.

When I want to replace a field whose value is: /V (\(Saisir l'adresse sur 3 lignes minimum\)\rDESTINATAIRE\rADRESSE \rCP VILLE )) He replaces with: /V <20727565206465732063616E61726473>\rDESTINATAIRE\rADRESSE \rCP VILLE ) instead of /V <20727565206465732063616E61726473>

So I corrected line 836 on /fpdm/fpdm.php : if(preg_match('#/V\s?[<(]([^>)]*)[>)]#', $CurLine, $a, PREG_OFFSET_CAPTURE)) in if(preg_match('#/V\s?[<(]([^>]*)[>)]#', $CurLine, $a, PREG_OFFSET_CAPTURE))

But is this the correct correction?

NithoPamc avatar Aug 16 '21 10:08 NithoPamc