8000 Don't replace fields containing parentheses · Issue #48 · codeshell/fpdm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Don't replace fields containing parentheses #48
Open
@NithoPamc

Description

@NithoPamc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0