Skip to content

Commit

Permalink
BUGFIX: The URL type had an invalid RegExp for its check
Browse files Browse the repository at this point in the history
  • Loading branch information
hash-bang committed Mar 27, 2012
1 parent b74398d commit 446d954
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/waveform.php
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,6 @@ function Type($type) {
* @param mixed $value If $attribs is a single string value set that style element to this specified value
*/
function Style($element, $attribs, $value = null) {

if ($element && is_array($attribs)) { // First form - Set the style of an element
if (!isset($attribs['TAG']))
$attribs['TAG'] = $this->_style[$element]['TAG'];
Expand Down Expand Up @@ -1113,7 +1112,7 @@ function Email() {
*/
function URL() {
$this->type = WAVEFORM_TYPE_STRING;
$this->Validate('re', '!^https?://([0-9a-z_-]+)\.([.0-9a-z_-]+)$/i', 'Invalid URL');
$this->Validate('re', '!^https?://([0-9a-z_-]+)\.([.0-9a-z_-]+)$!i', 'Invalid URL');
return $this;
}

Expand Down

0 comments on commit 446d954

Please sign in to comment.