diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index bb6c19b3e..e4d4feba0 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -5,6 +5,16 @@ - Fixed a possible counting problem when looking for an infinite loop in groups of groups. - Fixed a bug in the LDAP module that required the RDN to be a URL. + - bugfix [962196] addHTTP problem. + - bugfix [962224] WebGUI::Operation::Statistics + - bugfix [966470] WebGUI::User. Session not properly killed when deleting user. + - bugfix [966466] WebGUI::Session. System crash when user language missing. + - bugfix [ 981059 ] WebGUI vs perl 5.8.4 + - bugfix [ 975609 ] The form field for phone and email do not support maxlength + (Thanks to Junying Du). + - bugfix [ 938266 ] Fix: 5.5.4 Synopsis ignores hideFromNav (Thanks to + Nicklous Roberts.) + - bugfix [ 961056 ] pages erroneously owned by visitor 5.5.6 diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index 4c6c1b059..a72146ce4 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -68,6 +68,13 @@ database replication. - Templated the EditableToggle, a, and AdminToggle macros. Thanks to Colin Kuskie. + - bugfix [ 933881 ] Forms not compliant (solution). Thanks to Nicklous + Roberts. + - bugfix [ 934410 ] non-compliant HTML (solution). Thanks to Nicklous + Roberts. + - bugfix [ 963316 ] Field without title in Content Settings + + 6.0.3 - Fixed a recursive style change bug. diff --git a/lib/WebGUI/Auth.pm b/lib/WebGUI/Auth.pm index d68b1e245..cec95022e 100644 --- a/lib/WebGUI/Auth.pm +++ b/lib/WebGUI/Auth.pm @@ -214,7 +214,7 @@ sub createAccount { $vars->{'create.form.profile'} = WebGUI::Operation::Profile::getRequiredProfileFields(); $vars->{'create.form.submit'} = WebGUI::Form::submit({}); - $vars->{'create.form.footer'} = ""; + $vars->{'create.form.footer'} = WebGUI::Form::formFooter(); $vars->{'login.url'} = WebGUI::URL::page('op=auth&method=init'); $vars->{'login.label'} = WebGUI::International::get(58); @@ -377,7 +377,7 @@ sub displayAccount { $vars->{'account.form.karma.label'} = WebGUI::International::get(537); } $vars->{'account.form.submit'} = WebGUI::Form::submit({}); - $vars->{'account.form.footer'} = ""; + $vars->{'account.form.footer'} = WebGUI::Form::formFooter(); $vars->{'account.options'} = WebGUI::Operation::Shared::accountOptions(); return WebGUI::Template::process(1,$template, $vars); @@ -427,7 +427,7 @@ sub displayLogin { $vars->{'login.form.password'} = WebGUI::Form::password({"name"=>"identifier"}); $vars->{'login.form.password.label'} = WebGUI::International::get(51); $vars->{'login.form.submit'} = WebGUI::Form::submit({"value"=>WebGUI::International::get(52)}); - $vars->{'login.form.footer'} = ""; + $vars->{'login.form.footer'} = WebGUI::Form::formFooter(); $vars->{'anonymousRegistration.isAllowed'} = ($session{setting}{anonymousRegistration}); $vars->{'createAccount.url'} = WebGUI::URL::page('op=createAccount'); $vars->{'createAccount.label'} = WebGUI::International::get(67); diff --git a/lib/WebGUI/Auth/WebGUI.pm b/lib/WebGUI/Auth/WebGUI.pm index 4ca0465f7..149158a39 100644 --- a/lib/WebGUI/Auth/WebGUI.pm +++ b/lib/WebGUI/Auth/WebGUI.pm @@ -390,7 +390,7 @@ sub recoverPassword { $vars->{'recover.form.hidden'} .= WebGUI::Form::hidden({"name"=>"method","value"=>"recoverPasswordFinish"}); $vars->{'recover.form.submit'} = WebGUI::Form::submit({}); - $vars->{'recover.form.footer'} = ""; + $vars->{'recover.form.footer'} = WebGUI::Form::formFooter(); $vars->{'login.url'} = WebGUI::URL::page('op=auth&method=init'); $vars->{'login.label'} = WebGUI::International::get(58); @@ -457,7 +457,7 @@ sub resetExpiredPassword { $vars->{'expired.form.passwordConfirm'} = WebGUI::Form::password({"name"=>"identifierConfirm"}); $vars->{'expired.form.passwordConfirm.label'} = WebGUI::International::get(2,'AuthWebGUI'); $vars->{'expired.form.submit'} = WebGUI::Form::submit({}); - $vars->{'expired.form.footer'} = ""; + $vars->{'expired.form.footer'} = WebGUI::Form::formFooter(); return WebGUI::Template::process(1,'AuthWebGUI/Expired', $vars); } diff --git a/lib/WebGUI/Config.pm b/lib/WebGUI/Config.pm index 65e92740b..428334800 100644 --- a/lib/WebGUI/Config.pm +++ b/lib/WebGUI/Config.pm @@ -147,6 +147,8 @@ sub readConfig { } else { $data{defaultSitename} = $data{sitename}; } + $data{webguiRoot} = $webguiPath; + $data{configFile} = $filename; return \%data; } diff --git a/lib/WebGUI/Form.pm b/lib/WebGUI/Form.pm index 2172960eb..c1caf151f 100644 --- a/lib/WebGUI/Form.pm +++ b/lib/WebGUI/Form.pm @@ -46,6 +46,7 @@ Base forms package. Eliminates some of the normal code work that goes along with $html = WebGUI::Form::email({name=>"emailAddress"}); $html = WebGUI::Form::fieldType({name=>"fieldType"); $html = WebGUI::Form::file({name=>"image"}); + $html = WebGUI::Form::formFooter(); $html = WebGUI::Form::formHeader(); $html = WebGUI::Form::filterContent({value=>"javascript"}); $html = WebGUI::Form::float({name=>"distance"}); @@ -675,6 +676,19 @@ sub filterContent { }); } +#------------------------------------------------------------------- + +=head2 formFooter ( ) + +Returns a form footer. + +=cut + +sub formFooter { + return "\n\n"; +} + + #------------------------------------------------------------------- =head2 formHeader ( hashRef ) @@ -718,7 +732,7 @@ sub formHeader { } my $method = $_[0]->{method} || "POST"; my $enctype = $_[0]->{enctype} || "multipart/form-data"; - return '