Skip to content

refactored dbexport.php#97

Merged
ringostarr80 merged 1 commit intomainfrom
refactor/dbexport
Mar 1, 2026
Merged

refactored dbexport.php#97
ringostarr80 merged 1 commit intomainfrom
refactor/dbexport

Conversation

@ringostarr80
Copy link
Owner

No description provided.

$schema = RequestParameter::getString('schema') ?? '';

if ($subject === 'schema') {
$command .= " -n " . escapeshellarg("\"{$schema}\"");

Check warning

Code scanning / SonarCloud

Untrusted user input should not be used in file operations Medium

Make sure that this user-controlled command argument doesn't lead to unwanted behavior. See more on SonarQube Cloud
$command .= " -n " . escapeshellarg("\"{$schema}\"");
} elseif ($subject === 'table' || $subject === 'view') {
$object = RequestParameter::getString($subject);
$command .= " -t " . escapeshellarg("\"{$schema}\".\"{$object}\"");

Check warning

Code scanning / SonarCloud

Untrusted user input should not be used in file operations Medium

Make sure that this user-controlled command argument doesn't lead to unwanted behavior. See more on SonarQube Cloud
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 1, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@ringostarr80 ringostarr80 merged commit 71decad into main Mar 1, 2026
10 of 11 checks passed
@ringostarr80 ringostarr80 deleted the refactor/dbexport branch March 1, 2026 10:52
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