Skip to content

Commit

Permalink
allow absolute urls that start with #
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmatic69 committed Jul 6, 2012
1 parent ef0902e commit f628c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Libs/Model/Behavior/ValidationBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function validateEitherOr(Model $Model, $field, $fields) {
public function validateUrlOrAbsolute(Model $Model, $field) {
return
// aboulute url
substr(current($field), 0, 1) == '/' ||
substr(current($field), 0, 1) == '/' || substr(current($field), 0, 1) == '#' ||

// valid url
Validation::url(current($field), true);
Expand Down

0 comments on commit f628c5d

Please sign in to comment.