WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Space before and after email address
  • Print
Pages: [1]   Go Down

Author Topic: Space before and after email address  (Read 16787 times)

Offline netraam

  • Posts: 47
Space before and after email address
« on: October 31, 2021, 11:44:28 PM »
Hello everyone,

On my website i'm using a form that is created withe the mpform module.
I have a problem with the validation of the email address field.
I think this validation is done by some function off WebsiteBaker.
The problem is that there are a lot of people who type a space after their email adress, and then the form reject the email address.
I know that there is a php function called "trim" to remove spaces on the beginning and the end of a string.
Is it possible to apply this function on the email addres field or on the function that validates the email?

Does anyone have a solution for this? I know a littlebit of php but not enough to find my way in the WebsiteBaker code.

Logged

Offline dbs

  • Betatester
  • **
  • Posts: 8915
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: Space before and after email address
« Reply #1 on: November 01, 2021, 11:52:52 AM »
Hello, i think this is a function of mpForm (not WB).
The author of mpForm (Martin aka mrbaseman) could have a fast solution.
Logged
https://onkel-franky.de

Offline Martin Hecht

  • Betatester
  • **
  • Posts: 608
  • Gender: Male
    • meine Homepage
Re: Space before and after email address
« Reply #2 on: November 02, 2021, 10:42:58 PM »
well... a quick&dirty fix. Here is a pre-release, but with this one the leading and trailing spaces may occur here and there where they couldn't so far because the invalid input was rejected up to now

edit: attachement  removed. see next posting
« Last Edit: November 08, 2021, 10:47:08 PM by dbs »
Logged

Offline Martin Hecht

  • Betatester
  • **
  • Posts: 608
  • Gender: Male
    • meine Homepage
Re: Space before and after email address
« Reply #3 on: November 08, 2021, 10:31:06 PM »
a better solution went into mpform 1.3.39
Logged

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1884
    • EFG MG
Re: Space before and after email address
« Reply #4 on: November 09, 2021, 01:50:39 PM »
Thanks for sharing
Logged
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline CodeALot

  • Posts: 579
  • Gender: Male
Re: Space before and after email address
« Reply #5 on: December 09, 2021, 12:31:42 PM »
Quote from: Martin Hecht on November 08, 2021, 10:31:06 PM
a better solution went into mpform 1.3.39
Windows Defender claims this archive contains a virus...
Logged

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1884
    • EFG MG
Re: Space before and after email address
« Reply #6 on: December 09, 2021, 01:14:02 PM »
Symantec does not strike,
what threat is it supposed to be according to Micrsoft?
Logged
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

Offline Martin Hecht

  • Betatester
  • **
  • Posts: 608
  • Gender: Male
    • meine Homepage
Re: Space before and after email address
« Reply #7 on: December 09, 2021, 02:22:45 PM »
Huh? that's probably a false positive of defender. At least 58 scan engines at VirusTotal don't find anything suspicious in there... (at least at the time of writing this post). It would be interesting to know what defender doesn't like here.

I remember years ago we had a similar case with the java script for spam protection included in the wb core package.
Logged

Offline hgs

  • WebsiteBaker Org e.V.
  • **
  • Posts: 1884
    • EFG MG
Re: Space before and after email address
« Reply #8 on: December 09, 2021, 02:35:06 PM »
Quote from: Martin Hecht on December 09, 2021, 02:22:45 PM
Huh? that's probably a false positive of defender.

I also suspect that
Logged
LG Harald

"Fange nie an, aufzuhören - höre nie auf, anzufangen." Marcus Tullius Cicero (106-43 v.Chr.)

"Never begin to stop - never stop beginning." Marcus Tullius Cicero (106-43 BC)

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.12.x) »
  • General Help & Support »
  • Space before and after email address
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2