[Bps-public-commit] rt-extension-formtools branch dynamic-forms-from-config updated. 0.53-24-gd32cbe0

BPS Git Server git at git.bestpractical.com
Thu Oct 5 07:11:01 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt-extension-formtools".

The branch, dynamic-forms-from-config has been updated
       via  d32cbe0b52ce78b6e1536370cecfeadac006f3f0 (commit)
      from  1aa048178a00e9dcec566f4232796cdff9c7ead5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d32cbe0b52ce78b6e1536370cecfeadac006f3f0
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Oct 5 03:10:21 2023 -0400

    Allow "-" in page name as uuid contains it

diff --git a/html/Forms/dhandler b/html/Forms/dhandler
index 790aece..5ca5fce 100644
--- a/html/Forms/dhandler
+++ b/html/Forms/dhandler
@@ -28,7 +28,7 @@ foreach my $element ( @{$form_config->{'formtools-pages'}{$page}{'content'}} ) {
 my $path = $m->dhandler_arg;
 my ($form_name, $page_name);
 
-if ( $path =~ /^([\w|\s]+)\/(\w+)$/ ) {
+if ( $path =~ /^([\w|\s]+)\/([-\w]+)$/ ) {
     $form_name = $1;
     $page_name = $2;
 }
@@ -43,7 +43,7 @@ unless ( $form_name =~ /^[\w|\s]+$/ ) {
 }
 
 if ( $page_name ) {
-    unless ( $page_name =~ /^\w+$/ ) {
+    unless ( $page_name =~ /^[-\w]+$/ ) {
         RT->Logger->error("FormTools called with invalid page name: $page_name");
         Abort('Invalid page name');
     }

-----------------------------------------------------------------------

Summary of changes:
 html/Forms/dhandler | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
rt-extension-formtools


More information about the Bps-public-commit mailing list