Skip Menu |

This queue is for tickets about the CGI-FormBuilder CPAN distribution.

Report information
The Basics
Id: 37939
Status: rejected
Priority: 0/
Queue: CGI-FormBuilder

People
Owner: Nobody in particular
Requestors: lesley_b_linux [...] yahoo.co.uk
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in:
  • 3.03
  • 3.0501
Fixed in: (no value)



Subject: Default form action broken when using TT2
Debian stable (etch) CGI.pm 3.38 CGI::FormBuilder v3.0501, perl v5.8.8 When using TT2 template and CGI::FormBuilder in a CGI (as opposed to mod_perl) way with a default action, e.g. my $form = CGI::FormBuilder->new( template => { type=> 'TT2', template => 'contact.tt', variable => 'contact' }, name => 'contactform', id => 'contactform', fields => \@formfields , method => 'post', ); the action in the form tag loses any path relative to the baseurl of the site e.g. <form action="fred.cgi" ...> instead of <form action="/cgi/fred.cgi" ....>. Results in an HTTP 404. Workaround: Specifying action=> $ENV{SCRIPT_NAME} fixes the problem.
I am no longer accepting any bug reports that don't have patches and tests. The idea behind Open Source Software is that the COMMUNITY of developers contributes to its development.