Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-10846

Replace deprecated mysql_escape_string() with addslashes()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.2.1
    • Fix Version/s: 4.7
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      The mysql_escape_string() function is deprecated.

      Unfortunately, replacing it with mysql_real_escape_string() (patch dated 18/Sep) creates problems in the GenCode.php script.

      Retrying, replacing mysql_escape_string() with addslashes().

        Attachments

        1. CRM-10846.patch
          2 kB
          Bob Vincent
        2. CRM-10846.patch
          2 kB
          Bob Vincent
        3. CRM-10846.patch
          1 kB
          Bob Vincent

          Issue Links

            Activity

              People

              • Assignee:
                lobo Donald A. Lobo
                Reporter:
                pillarsdotnet Bob Vincent
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: