summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-11-18 08:05:48 +0100
committerjustdave%syndicomm.com <>2001-11-18 08:05:48 +0100
commitacf7518223db6d3d10709c76607de1eb87d2ccd2 (patch)
tree25ffa909f65f7d96f9c514f6ca28105af2d7109d /enter_bug.cgi
parent8df7faa9ba4f01f0603e54a4d9588f9da3f3d349 (diff)
downloadbugzilla-acf7518223db6d3d10709c76607de1eb87d2ccd2.tar.gz
bugzilla-acf7518223db6d3d10709c76607de1eb87d2ccd2.tar.xz
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
Diffstat (limited to 'enter_bug.cgi')
-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>