CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Validation won't accept URL with "-" in the website field
Pages: [1]

Author Topic: Validation won't accept URL with "-" in the website field  (Read 1220 times)

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Validation won't accept URL with "-" in the website field
September 10, 2011, 02:00:08 pm
Using 4.0.5, I've been able to narrow it down to a URL with "-" (hyphen, minus sign) that results in validation error:

Code: [Select]
Please correct the following errors in the form fields below:
Enter a valid web location beginning with 'http://' or 'https://'. EXAMPLE: http://www.mysite.org/

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Validation won't accept URL with "-" in the website field
September 10, 2011, 07:06:43 pm

this is a bug with your version of PHP. u'll need to upgrade to a more recent version of PHP

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Slovak

  • I post occasionally
  • **
  • Posts: 89
  • Karma: 3
    • My website
  • CiviCRM version: 3.4.x, 4.2.x
  • CMS version: Drupal 6.x, 7.x
  • MySQL version: 5.5.29
  • PHP version: 5.3.10
Re: Validation won't accept URL with "-" in the website field
September 10, 2011, 07:29:38 pm
Quote from: Donald Lobo on September 10, 2011, 07:06:43 pm

this is a bug with your version of PHP. u'll need to upgrade to a more recent version of PHP

lobo

Thanks, I will look into that.

rcsheets

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Validation won't accept URL with "-" in the website field
September 21, 2011, 09:09:02 pm
Quote from: Donald Lobo on September 10, 2011, 07:06:43 pm
this is a bug with your version of PHP. u'll need to upgrade to a more recent version of PHP

The relevant bug, in case anyone else happens upon this thread and is wondering, is PHP bug number 51192, which unfortunately the forum will not allow me to link to. It was fixed in PHP 5.3.3.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Validation won't accept URL with "-" in the website field

This forum was archived on 2017-11-26.