summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xenter_bug.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index c96c71b2c..bd55b7363 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -437,7 +437,8 @@ print "
<TR>
<TD ALIGN=RIGHT><B>URL:</B>
<TD COLSPAN=5>
- <INPUT NAME=bug_file_loc SIZE=60 value=\"http://" .
+ <INPUT NAME=bug_file_loc SIZE=60 value=\"" .
+ ((formvalue('bug_file_loc') !~ /:/o) ? 'http://' : '') .
value_quote(formvalue('bug_file_loc')) .
"\"></TD>
</TR>