Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2594

Database credentials escape characters for double-quotes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.2, 4.3.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      When the blesta config file is written, and the database credentials are saved, special characters are escaped in php strings, like "$". However, the config uses single-quote strings rather than double-quote strings, so some special characters do not need to be escaped anymore, like "$". For example, an apostrophe, "'", should continue to be escaped.

      See https://www.blesta.com/forums/index.php?/topic/10948-v420-mysql-password-escaping-issue/

        Activity

        tyson Tyson Phillips (Inactive) created issue -
        tyson Tyson Phillips (Inactive) made changes -
        Field Original Value New Value
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Sprint 4.3.0 Sprint 3 [ 53 ]
        tyson Tyson Phillips (Inactive) made changes -
        Rank Ranked higher
        tyson Tyson Phillips (Inactive) made changes -
        Fix Version/s 4.2.2 [ 11021 ]
        Fix Version/s 4.3.0-b1 [ 11019 ]
        tyson Tyson Phillips (Inactive) made changes -
        Assignee Tyson Phillips [ tyson ]
        tyson Tyson Phillips (Inactive) made changes -
        Description When the blesta config file is written, and the database credentials are saved, special characters are escaped in php strings, like "$". However, the config uses single-quote strings rather than double-quote strings, so some special characters do not need to be escaped anymore, like "$". For example, an apostrophe, "'", should continue to be escaped. When the blesta config file is written, and the database credentials are saved, special characters are escaped in php strings, like "$". However, the config uses single-quote strings rather than double-quote strings, so some special characters do not need to be escaped anymore, like "$". For example, an apostrophe, "'", should continue to be escaped.

        See https://www.blesta.com/forums/index.php?/topic/10948-v420-mysql-password-escaping-issue/
        Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        Automated transition triggered when Tyson Phillips (Inactive) created pull request #393 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        tyson Tyson Phillips (Inactive) made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 31 minutes [ 1860 ]
        Worklog Id 10706 [ 10706 ]
        jonathan Jonathan Reissmueller made changes -
        Time Spent 31 minutes [ 1860 ] 59 minutes [ 3540 ]
        Worklog Id 10713 [ 10713 ]
        Automated transition triggered when Tyson Phillips (Inactive) merged pull request #393 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              22/Feb/18

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 59 minutes
              59m

                Agile