Skip to content

Closed - #413

Closed
Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-importer-validate-structure
Closed

Closed#413
Hackwar wants to merge 1 commit into
joomla-framework:4.x-devfrom
Hackwar:4.x-importer-validate-structure

Conversation

@Hackwar

@Hackwar Hackwar commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

No description provided.

The importers put the column type, the Extra attributes, the key Sub_part
and generated defaults from the XML into DDL as they were, so a crafted
export file run through mergeStructure() or the import command could execute
arbitrary SQL. Column types must now be plain type declarations, Extra may
only contain the attributes MySQL reports, Sub_part is cast to int, and
defaults that are not a known expression are quoted. The CREATE statements
are split with splitSql() instead of explode(';'), so a semicolon in a
quoted default no longer breaks them. The class docblock says that import
files must be trusted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Hackwar Hackwar closed this Nov 13, 2026
@Hackwar Hackwar changed the title [4.x] Validate column definitions from import files Closed Nov 13, 2026
@Hackwar
Hackwar deleted the 4.x-importer-validate-structure branch November 13, 2026 12:50
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