Closed (fixed)
Project:
Webform Validation
Version:
7.x-1.x-dev
Component:
Validation rules
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2010 at 16:37 UTC
Updated:
24 Feb 2016 at 18:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nicholasthompsonbtw, This patch was made against HEAD.
Comment #2
svendecabooterHi Nicholas,
Thanks for your patch! Sorry for the late feedback.
Wouldn't it be better though to use
valid_url($val, TRUE), as it seems like a more widely used use case to validate external URLs...I'm not sure how the regex without $absolute = TRUE works, but it validates practically everything when i test it (including one word text entries).
Do you have a specific use case in mind where $absolute would have to be FALSE?
Comment #3
svendecabooterUpdated patches in attachment, using $absolute = TRUE.
I'll have to figure out what the consequences of all of this are at some point.
Comment #4
svendecabooterComment #5
jibranAccording to patch and http://drupal.org/node/822146#comment-3080360 I put this in my module and it works fine for me,
Comment #6
liam morlandComment #7
liam morlandFixed in 1d058b3.
Comment #8
liam morlandComment #9
theunraveler commentedI think it is probably best not to include links to Drupal's API documentation in user-facing help text. The end user does not really care which of Drupal's API functions is used to validate the URL, and including a link to developer-oriented documentation is just confusing. Here's a patch against the latest 7.x-1.x that removes this part from the help text.
Aside from that, this looks good.
Comment #10
liam morlandComment #11
liam morlandhttp://drupalcode.org/project/webform_validation.git/commitdiff/6ff2de1
Comment #12
liam morlandComment #13
liam morlandThanks, theunraveler.
Comment #14
liam morlandDrupal 6 is no longer supported.