Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-18969

Make $db->escapeString() escape underscores on demand

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 4.6.0
    • Fix Version/s: Future
    • Component/s: Database related
    • Labels:
      None

      Description

      $db->escapeString() does not escape underscores (which are considered as wildcards in MySQL), but it should at least on demand.

      Consider adding a flag parameter to this method.

        Activity

        Jérôme Vieilledent created issue -
        Hide
        Gaetano Giunta added a comment -

        Not sure if this is the correct function to put the escaping...

        but if it is, it will have to be not only underscores, but also * and ? I guess

        Show
        Gaetano Giunta added a comment - Not sure if this is the correct function to put the escaping... but if it is, it will have to be not only underscores, but also * and ? I guess
        André Rømcke made changes -
        Field Original Value New Value
        Fix Version/s 5.0.0rc1 [ 11080 ]
        Fix Version/s 4.7.0alpha1 [ 11012 ]
        André Rømcke made changes -
        Fix Version/s Future [ 11071 ]
        Fix Version/s 5.0.0rc1 [ 11080 ]
        André Rømcke made changes -
        Workflow eZ Community Workflow [ 22131 ] eZ Engineering Scrumban Workflow [ 35806 ]
        André Rømcke made changes -
        Status Backlog [ 10000 ] Open [ 1 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 35806 ] EZ* Development Workflow [ 68846 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 68846 ] EZEE Development Workflow [ 106993 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Backlog Backlog Open Open
        439d 2h 7m 1 André Rømcke 04/Feb/13 7:47 PM

          People

          • Assignee:
            Jérôme Vieilledent
            Reporter:
            Jérôme Vieilledent
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: