Skip to content

Make improvements to parseDSN method#284

Open
smg6511 wants to merge 1 commit into
modxcms:3.xfrom
smg6511:3.x-refactor-parseDSN
Open

Make improvements to parseDSN method#284
smg6511 wants to merge 1 commit into
modxcms:3.xfrom
smg6511:3.x-refactor-parseDSN

Conversation

@smg6511

@smg6511 smg6511 commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Refactors the parseDSN method to simplify logic and prevent issues with trailing semi-colons in evaluated string. There was an edge case in MODX where a trailing semi caused the dbname to be blank when it was, in fact, present in the string being evaluated.

Refactor to simplify logic and prevent issues with trailing semi-colons in evaluated string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant