Index: moodle/mod/data/field/url/field.class.php
--- moodle/mod/data/field/url/field.class.php Base (1.21)
+++ moodle/mod/data/field/url/field.class.php Locally Modified (Based On 1.21)
@@ -37,7 +37,6 @@
                 $text = $content->content1;
             }
         }
-        $url = empty($url) ? 'http://' : $url;
         $str = '<div title="'.s($this->field->description).'">';
         if (!empty($this->field->param1) and empty($this->field->param2)) {
             $str .= '<table><tr><td align="right">';
@@ -124,6 +123,7 @@
         $content->fieldid = $this->field->id;
         $content->recordid = $recordid;
         $names = explode('_', $name);
+        
         switch ($names[2]) {
             case 0:
                 // update link
@@ -137,6 +137,10 @@
                 break;
         }
 
+        if (!empty($content->content) && (strpos($content->content, '://') === false) && (strpos($content->content, '/', 0) === false)) {
+            $content->content = 'http://' . $content->content;
+        }  
+        
         if ($oldcontent = $DB->get_record('data_content', array('fieldid'=>$this->field->id, 'recordid'=>$recordid))) {
             $content->id = $oldcontent->id;
             return $DB->update_record('data_content', $content);

Index: moodle/mod/url/lib.php
--- moodle/mod/url/lib.php Base (1.7)
+++ moodle/mod/url/lib.php Locally Modified (Based On 1.7)
@@ -108,7 +108,7 @@
     }
     $data->displayoptions = serialize($displayoptions);
 
-    if (strpos($data->externalurl, '://') === false) {
+    if (!empty($data->externalurl) && (strpos($data->externalurl, '://') === false) && (strpos($data->externalurl, '/', 0) === false)) {
         $data->externalurl = 'http://'.$data->externalurl;
     }
 
@@ -149,7 +149,7 @@
     }
     $data->displayoptions = serialize($displayoptions);
 
-    if (strpos($data->externalurl, '://') === false) {
+    if (!empty($data->externalurl) && (strpos($data->externalurl, '://') === false) && (strpos($data->externalurl, '/', 0) === false)) {
         $data->externalurl = 'http://'.$data->externalurl;
     }
 
