Menu

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

open
nobody
Interface (15)
5
2011-06-20
2011-06-20
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

     
  • 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'

     

Log in to post a comment.