Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#53 include/common.lib.php: function quotes too greedy

open
nobody
Interface (15)
5
2011-06-20
2011-06-20
Carsten Thiel
No

While testing this app I noticed, that default values become escaped everytime I submitted the table structure view form.
I wrote a regex to avoid this.

see attachment

regards

Carsten Thiel

Discussion

  • Carsten Thiel
    Carsten Thiel
    2011-06-20

    patched function quotes

     
    Attachments
  • Carsten Thiel
    Carsten Thiel
    2011-06-21

    I updated the regex a bit. Now it looks for the Quotes at line-enings.

    New Regex:
    '/^([\'"]{1})?(.*)\1$/isU'