Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • David 26 posts 50 karma points
    Mar 22, 2010 @ 11:08
    David
    0

    Contour templates contain INVALID email regular expresion.

    Just came across this one...

    Contour includes two templates to quickly create contact and blog post forms.  Whlist these work great in most cases the regular expression syntax used in them to validate an email address is very flawed.  It does not allow my personal email for example which is on a "fun.org.uk" domain name. 

    So, from this a few questions spring immediately to mind:

    1. Can the tempaltes within Contour be modified?
       - I don't know the answer to this - Core team please help!
    2. What standard email validation regex should be included as part of the main Contour build?
       - I use something like this to validate my emails ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}$

    3. Upon creating some of my owen regular expressions - I found it slighly annoying that there wasn't a check-box to make the regex "case insensitive".
       - Core team >> Can a checkbox like this please be added into the next revision?

    Kind regards,
    David

  • Per Ploug Hansen 208 posts 129 karma points
    Mar 22, 2010 @ 13:33
    Per Ploug Hansen
    1

    Hi David

    1. The regex is kept in the config file here: \umbraco\plugins\umbracoContour so you can change it to something more fitting to you there.

    2. What has basicly happened 2-3 times now is that we release a new version with a suggested improved regex, and then a even better regex gets suggested at some point, so I'm guessing at some point we will have the perfect crowdsourced form validation :) 

    3. we have intentionally left it out of the ui to minimize the amount of ui components as regex does not depend on this setting being available. Adding it would mean an update to the database schema, something we would very much avoid doing in a minor maintance release.

  • David 26 posts 50 karma points
    Mar 22, 2010 @ 13:54
    David
    0

    Awesome - thank you for your support (again) Mr Hansen :)

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 18, 2011 @ 14:18
    Anthony Candaele
    0

    @Per

    I looked for the \umbraco\plugins\umbracoContour config file, but I don't see any setting for the regex there?

    greetings,

    Anthony

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 18, 2011 @ 15:41
    Tom Fulton
    0

    Hi Anthony,

    I think he is refering to the built in templates under:  /umbraco/plugins/umbracoContour/templates/

    I think if you have any forms already created based on these templates they would need to be updated also.

    -Tom

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 18, 2011 @ 15:46
    Anthony Candaele
    0

    @Tom the regular expression problem is solved by the regular expression that you handed to me in another post.

  • David Conlisk 432 posts 1008 karma points
    Nov 09, 2012 @ 11:44
    David Conlisk
    0

    EDIT: Never mind - wrong browser window! 

     

    Hi guys,

    Shouldn't this just come with Contour? Seems strange that I had to Google CAPTCHA for Contour to find this blog post to get the download link...

    Just a thought!

    David

Please Sign in or register to post replies

Write your reply to:

Draft