]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 100788: enter_bug.cgi wasn't correctly interpretting whether or not a...
authorjustdave%syndicomm.com <>
Sun, 18 Nov 2001 07:05:48 +0000 (07:05 +0000)
committerjustdave%syndicomm.com <>
Sun, 18 Nov 2001 07:05:48 +0000 (07:05 +0000)
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

enter_bug.cgi

index c96c71b2c226d93c0e9fb24a55422a5b91258928..bd55b7363d56e6581851f8e962df5eaa2a9f4c41 100755 (executable)
@@ -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>