-
AuthorPosts
-
February 20, 2023 at 10:46 am #1398603
I may have found a small bug:
In the avia form some special characters in the email subject are not decoded correctly.
e.g. ###91### does not become [ and ###93### does not become ].
(We’d tried to add a keyword like in square brackets to the subject…)
Also the small “Special Character Translation plugin” did not bring any improvement.
I am wondering that I have not found a bug report for this so far.
Regards,
MischaEnfold 5.4, PHP 8.0.x
February 20, 2023 at 2:54 pm #1398629May have found a workaround. The special characters in the subject of the message have to be urlencoded:
e.g.
%2F%2FFoo%5C%5C%20What%20if%20%3F%20bar%20%5Boo%5D
results in:
//Foo\\ What if ? bar [oo]
Then only the hint text in the Avia editor is misleading.
Online url-encoder: http://www.urlencoder.orgFebruary 21, 2023 at 7:57 pm #1398811Hi,
Thanks for your feedback, I see this is already reported on our GitHub issues,
I’m sure the Dev Team will reply to the GitHub issue.
https://github.com/KriesiMedia/enfold-library/issues/22#issuecomment-1437049267
But I believe this is because the Translation plugin doesn’t run in the backend, it is a frontend function using str_replace() thus using encoded characters for the backend mail function are needed.
I have forwarded this for feedback and will reply when I hear back.Best regards,
MikeFebruary 21, 2023 at 10:09 pm #1398820Apart from the fact that there must be a reason why it doesn’t work and it is certainly interesting to find out how to achieve it i still don’t quite understand why there has to be square brackets in a subject field. What terminology requires this notation there of all places – and could not be done by curved brackets?
I’m forced to use greater than and less than characters when I try to make proportions clear – there is no alternative to use them.PS : i tested the normal keys on my mac ( it is option 5 and 6 ) in that subject field – and they work – and the e-mail i resceived do have those square brackets.
Where the above-mentioned greater than and less than are not transmitted!February 23, 2023 at 2:47 pm #1399017Hi,
The Dev Team has modified the Special Character Translation plugin to support the mail form elements with this filter:add_filter( 'avf_form_subject', array( $this, 'handler_the_content' ), 9999999, 1 ); add_filter( 'avf_form_mail_form_field', array( $this, 'handler_the_content' ), 9999999, 1 );
In my test it is working, please check the new version.
Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.