summaryrefslogtreecommitdiff
path: root/classes/Remote_profile.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Remote_profile.php')
-rw-r--r--classes/Remote_profile.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/Remote_profile.php b/classes/Remote_profile.php
index 0aa727ad1..f36ac5f0c 100644
--- a/classes/Remote_profile.php
+++ b/classes/Remote_profile.php
@@ -40,4 +40,9 @@ class Remote_profile extends DB_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function validateUrl() {
+ return is_null($this->url) ||
+ Validate::uri($this->url, array('allowed_schemes' => array('http', 'https')));
+ }
}