Skip to content

Commit

Permalink
Contact Form: Prevent direct file access (#38982)
Browse files Browse the repository at this point in the history
* Prevent direct file access to contact-form.php

* changelog
  • Loading branch information
coder-karen authored Aug 21, 2024
1 parent c4f01da commit faea532
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Contact Form: Prevent direct file access.
4 changes: 4 additions & 0 deletions projects/plugins/jetpack/modules/contact-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* @package automattic/jetpack
*/

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

use Automattic\Jetpack\Forms\Jetpack_Forms;

/**
Expand Down

0 comments on commit faea532

Please sign in to comment.