Skip to content

Commit

Permalink
gw-gravity-forms-rename-uploaded-files.php: Fixed an issue where fi…
Browse files Browse the repository at this point in the history
…lename merge tag did not work.
  • Loading branch information
saifsultanc authored Oct 29, 2023
1 parent 5e41cab commit b992c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gravity-forms/gw-gravity-forms-rename-uploaded-files.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function get_renamed_filepath( $template, $file, $entry ) {

// replace merge tags
$form = GFAPI::get_form( $entry['form_id'] );
$filename = GFCommon::replace_variables( $template, $form, $entry, false, true, false, 'text' );
$filename = GFCommon::replace_variables( $filename, $form, $entry, false, true, false, 'text' );
// make sure filename is "clean". This includes removing any user inputted items such as "../", "/usr/bin" etc
$filename = $this->clean( $filename );

Expand Down

0 comments on commit b992c1d

Please sign in to comment.