From c1eb6b7a3cb5f4c49636247ce4f13604a9c17e40 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Wed, 8 Oct 2025 06:35:22 +0100 Subject: [PATCH] * Tue Oct 07 2025 Brian Read 1.0.0-16.sme - Apply change from startform to start_form and endform to end_form to CGI panels [SME: 12775-87] --- root/etc/e-smith/web/functions/webshare | 16 ++++++++-------- smeserver-webshare.spec | 5 ++++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/root/etc/e-smith/web/functions/webshare b/root/etc/e-smith/web/functions/webshare index c2c355a..e6fc1fd 100755 --- a/root/etc/e-smith/web/functions/webshare +++ b/root/etc/e-smith/web/functions/webshare @@ -161,7 +161,7 @@ foreach (sort keys %projects) - print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1)); + print $q->start_form (-method => 'POST', -action => $q->url (-absolute => 1)); print $q->p ($q->a ({href => $q->url (-absolute => 1) . "?state=create"}, 'Click here'), @@ -230,7 +230,7 @@ END_TEXT esmith::cgi::genHeaderNonCacheable ($q, \%conf, 'Create a new web share'); - print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1)); + print $q->start_form (-method => 'POST', -action => $q->url (-absolute => 1)); print $q->p ($q->a ({href => $q->url (-absolute => 1)}, 'Click here'), @@ -274,7 +274,7 @@ END_TEXT print $q->hidden (-name => 'state', -override => 1, -default => 'createShare'); - print $q->endform; + print $q->end_form; esmith::cgi::genFooter ($q); } @@ -334,7 +334,7 @@ END_TEXT esmith::cgi::genHeaderNonCacheable ($q, \%conf, "Add user to web share: $project"); - print $q->startform (-method => 'POST', -action => $q->url (-absolute => 1)); + print $q->start_form (-method => 'POST', -action => $q->url (-absolute => 1)); print $q->p ($q->a ({href => $q->url (-absolute => 1)}, 'Click here'), @@ -364,7 +364,7 @@ END_TEXT print $q->hidden (-name => 'state', -override => 1, -default => 'createUser'); - print $q->endform; + print $q->end_form; esmith::cgi::genFooter ($q); return; } @@ -448,7 +448,7 @@ sub deleteUser ($) esmith::cgi::genHeaderNonCacheable ($q, \%conf, "View/Delete Web share users: $project"); - print $q->startform + print $q->start_form (-method => 'POST', -action => $q->url (-absolute => 1)); print $q->p ($q->a ({href => $q->url (-absolute => 1)}, @@ -550,7 +550,7 @@ sub deleteProject ($) esmith::cgi::genHeaderNonCacheable ($q, \%conf, 'Delete Web share project'); - print $q->startform + print $q->start_form (-method => 'POST', -action => $q->url (-absolute => 1)); print $q->p ($q->a ({href => $q->url (-absolute => 1)}, @@ -570,7 +570,7 @@ sub deleteProject ($) -default => 'performDelete'); } - print $q->endform; + print $q->end_form; esmith::cgi::genFooter ($q); return; } diff --git a/smeserver-webshare.spec b/smeserver-webshare.spec index e6eca98..fd8f948 100644 --- a/smeserver-webshare.spec +++ b/smeserver-webshare.spec @@ -6,7 +6,7 @@ Summary: Webshare addon for SME Server %define name smeserver-webshare Name: %{name} %define version 1.0.0 -%define release 15 +%define release 16 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -21,6 +21,9 @@ Obsoletes: devinfo-mitel-webshare dmc-mitel-webshare %changelog +* Tue Oct 07 2025 Brian Read 1.0.0-16.sme +- Apply change from startform to start_form and endform to end_form to CGI panels [SME: 12775-87] + * Sun Sep 08 2024 fix-e-smith-pkg.sh by Trevor Batley 1.0.0-15.sme - Fix e-smith references in smeserver-webshare [SME: 12732]