THEMA:

Bug: mailback not sent if related checkfield name contains underscore 9 Jahre 9 Monate her #95346

  • Autor
  • Visionet
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Registered
  • Beiträge: 9
  • Dank erhalten: 0
Hi all,

I've been running into a bug where mailback mail is not sent if the related "send a copy to my email" checkbox is named with an underscore (which is permitted as indicated by the backend).

This happens in current version "BreezingForms 1.8.3 Stable (build 831)" in line 5335 with the following code:

$yesno = explode('_', $accept[$row->name]);

where the intention was to split the first part (which seems to be 'true') from the checkbox name defined for the "send a copy to my email" checkbox where the delimiter is an underscore. The code assumes something like 'true_myCheckboxName'.

The second part of the string ('myCheckboxName') is used to get the submitted value of the form.

This fails if the checkbox name contains underscores (e.g. 'my_checkbox_name') because the explode statement then splits the string into multiple parts leading the code to search after the submitted checkbox with name 'my' and not as it should be 'my_checkbox_name'.

The fix is to not use explore but something like preg_split which allows to split on the first occurance of an underscore (line 5335 of facileforms.process.php):

$yesno = preg_split('/_/', $accept[$row->name], 2);

Find a (svn -Naur) patch attached to this subject fixing the bug.

Regards
Dietrich

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Letzte Änderung: Post by Visionet.

Bug: mailback not sent if related checkfield name contains underscore 9 Jahre 9 Monate her #95436

  • TheMuffinMans Avatar
  • TheMuffinMan
  • Offline
  • Administrator
  • Administrator
  • Super Users
  • Beiträge: 10544
  • Dank erhalten: 859
Hi,

yeah thank you! We have a similar bug for html5/flash uploads and will fix that quick and dirty solution.

Regards,
Markus

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Bug: mailback not sent if related checkfield name contains underscore 9 Jahre 8 Monate her #96036

  • Autor
  • Visionet
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Registered
  • Beiträge: 9
  • Dank erhalten: 0
Hi Markus,

when can we expect a new version containing the fix?

Regards.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Bug: mailback not sent if related checkfield name contains underscore 9 Jahre 8 Monate her #96106

  • lennerd
  • Offline
  • Administrator
  • Administrator
  • Registered
  • Beiträge: 4669
  • Dank erhalten: 411
Hello,

not sure how long it will take. Markus is working on it and this fix is on his todo list.
Regards,
Stefan

===============================================
Satisfied? Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Seite:
  • 1
Moderatoren: ForumSupport
Ladezeit der Seite: 0.058 Sekunden

Angebot

Sommer Special! Alle Mitgliedschaften zum Sonderpreis!

Prio Support, alle Extensions und alle Templates in einem Paket.

Hier geht's zur Bestellung

Crosstec hilft sparen!

Falls Sie neu bei Crosstec sind aber bereits einen Formulargenerator bei einem anderen Hersteller gekauft haben, dann bekommen sie von uns einen Rabatt von 25% auf unsere 1-Jahres und Pro-Mitgliedschaften

Wie Sie an den Rabatt kommen?

Schreiben Sie uns einfach eine kurze Email mit beigelegten Kaufbeleg (z.B. PayPal Quittung) an sales@crosstec.org.

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!

Wir unterstützen die Joomla Community

Crosstec unterstützt weltweit alle offiziellen Joomla! User Groups und Organisatoren von Joomla! Days die bei Joomla.org registriert sind.

Falls das auf dich zutrifft und du eines unserer Produkte brauchst, schreib uns eine kurze Email an info@crosstec.org und du bekommst eine Flatrate-Mitgliedschaft geschenkt!