ethylsd
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Issue with get_posted_data() or $_POST keysOf course, it will convert them! Thank you for clarifying that.
However, get_posted_data() doesn’t work from our end but $_POST does. We’re quite confused about this as we never did any changes to our codes before.
In the meantime, this resolved our issue by using $_POST.
Thanks!
Forum: Plugins
In reply to: [Contact Form 7] Issue with get_posted_data() or $_POST keysWe added the code on the
functions.php
file.We opt out the original code but below is a sample that reproduces the same issue:
add_action( 'wpcf7_before_send_mail' , 'so_custom_before_send_mail', 999 ); function so_custom_before_send_mail( $form ) { $wpcf7 = WPCF7_ContactForm::get_current(); $submission = WPCF7_Submission::get_instance(); if ( $submission ) { $data = $submission->get_posted_data(); $mail = $wpcf7->prop('mail'); $mail['body'] .= "\n"; $mail['body'] .= "\n" . print_r( $data, true ); $mail['body'] .= "\n" . print_r( $_POST, true ); $wpcf7->set_properties(array( 'mail' => $mail )); return $wpcf7; } }
It’s just printing the form data but it’s still producing the same issue.
Forum: Plugins
In reply to: [Contact Form 7] Issue with get_posted_data() or $_POST keysWe don’t want to post it here but not sure if it’s possible to private a reply.
The website is https://tesol.org.au/
Even though period (.) is a safe character, apparently, three consecutive periods or ellipsis causes the URL to be blocked.
I have whitelisted the ellipsis on the BBQ GUI under the Request URIs field.
I entered the following characters below:
\.\.\.
Thanks, Jeff for all the help!
- This reply was modified 5 years, 11 months ago by ethylsd.
Hello Jeff,
Thank you for your reply.
I haven’t thought of that method. I will try and test the URL.
Also, I downloaded the BBQ GUI here:
https://github.com/LyntServices/bbq-guiKind regards
Hello Jeff,
Thank you for your quick reply.
Sorry for the confusion.
The second link is just a screenshot I took of the characters separated to each other so I could clearly determine the unsafe characters. It is the same link as the first.
The link that is being blocked by BBQ is the first link.
Kind regards