Skip to content

Commit

Permalink
Fix: Ensure that upload action has a string before doing any path work
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanJard committed Aug 26, 2021
1 parent 41cc7d0 commit a1858a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataTables-Editor-Server/Upload.cs
Expand Up @@ -698,7 +698,7 @@ private dynamic _dbExec(Editor editor, IFormFile upload)
// database schema is and don't want to prescribe that certain triggers
// etc be created. It makes it a bit less efficient but much more
// compatible
if (pathFields.Any())
if (pathFields.Any() && _actionStr != null)
{
// For this to operate the action must be a string, which is
// validated in the `exec` method
Expand Down

0 comments on commit a1858a7

Please sign in to comment.