Fix for bug 100788: enter_bug.cgi wasn't correctly interpretting whether or not…

Fix for bug 100788: enter_bug.cgi wasn't correctly interpretting whether or not a partial URL needed an http:// added to the front of it, which had the side-effect of duplicating the http:// on the front when a URL was passed from Bugzilla Helper. Patch by Josh Soref <timeless@mac.com> r= justdave, caillon
parent 8df7faa9
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment