[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] Enhance tiki filter

"Elifeleti Mukisa Dan \(@Danelif\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68fc821fc3878_2c4192f906318f@gitlab-sidekiq-low-urgency-cpu-bound-v2-854849f664-fdstx.mail>

Elifeleti Mukisa Dan pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
875d2a48 by Espoir Baraka at 2025-10-25T07:46:30+00:00
[ENH] Enhance tiki filter
---
* [ENH] Enhance tiki filter

See merge request tikiwiki/tiki!8854

- - - - -


14 changed files:

- tiki-quiz_stats_quiz.php
- tiki-received_articles.php
- tiki-received_pages.php
- tiki-references.php
- tiki-referer_stats.php
- tiki-rename_page.php
- tiki-rollback.php
- tiki-search_replace.php
- tiki-search_stats.php
- tiki-send_newsletters.php
- tiki-send_objects.php
- tiki-share.php
- tiki-sheets.php
- tiki-shoutbox.php


Changes:

=====================================
tiki-quiz_stats_quiz.php
=====================================
@@ -16,9 +16,9 @@ $inputConfiguration = [
         'quizId'                   => 'int',             //get
         'remove'                   => 'int',             //get
         'clear'                    => 'bool',            //post
-        'sort_mode'                => 'word',            //get
+        'sort_mode'                => 'alnumdash',       //get
         'offset'                   => 'int',             //get
-        'find'                     => 'word',            //post
+        'find'                     => 'text',            //get
         ],
     ],
 ];


=====================================
tiki-received_articles.php
=====================================
@@ -36,9 +36,9 @@ $inputConfiguration = [
         'created'                  => 'bool',              //post
         'remove'                   => 'int',               //get
         'save'                     => 'bool',              //post
-        'sort_mode'                => 'word',              //get
+        'sort_mode'                => 'alnumdash',         //get
         'offset'                   => 'digits',            //get
-        'find'                     => 'word',              //post
+        'find'                     => 'text',              //get
         ],
     ],
 ];


=====================================
tiki-received_pages.php
=====================================
@@ -19,9 +19,10 @@ $inputConfiguration = [
         'checked'                  => 'bool',              //post
         'prefix'                   => 'word',              //post
         'postfix'                  => 'word',              //post
-        'sort_mode'                => 'word',              //get
+        'sort_mode'                => 'alnumdash',         //get
         'offset'                   => 'digits',            //get
-        'find'                     => 'alpha',             //post
+        'find'                     => 'text',              //get
+        'sort_modes'               => 'alnumdash',         //get
         ],
     ],
 ];


=====================================
tiki-references.php
=====================================
@@ -16,15 +16,15 @@ $inputConfiguration = [
         'referenceId'              => 'int',               //post
         'ref_auto_biblio_code'     => 'bool',              //post
         'ref_biblio_code'          => 'string',            //post
-        'ref_author'               => 'word',              //post
+        'ref_author'               => 'text',              //post
         'ref_title'                => 'string',            //post
-        'ref_part'                 => 'alpha',             //post
-        'ref_uri'                  => 'alpha',             //post
-        'ref_code'                 => 'alpha',             //post
-        'ref_publisher'            => 'alpha',             //post
-        'ref_location'             => 'alpha',             //post
+        'ref_part'                 => 'text',              //post
+        'ref_uri'                  => 'url',               //post
+        'ref_code'                 => 'alnumdash',         //post
+        'ref_publisher'            => 'text',              //post
+        'ref_location'             => 'text',              //post
         'ref_year'                 => 'digits',            //post
-        'ref_style'                => 'word',              //post
+        'ref_style'                => 'text',              //post
         'ref_template'             => 'digits',            //post
         'find'                     => 'string',             //post
         'maxRecords'               => 'int',               //post


=====================================
tiki-referer_stats.php
=====================================
@@ -12,7 +12,7 @@ $inputConfiguration = [
     [
         'staticKeyFilters'         => [
         'clear'                    => 'bool',              //post
-        'sort_mode'                => 'word',              //get
+        'sort_mode'                => 'alnumdash',         //get
         'offset'                   => 'digits',            //post
         'find'                     => 'string',            //post
         ],


=====================================
tiki-rename_page.php
=====================================
@@ -13,7 +13,7 @@ $section_class = "tiki_wiki_page manage";   // This will be body class instead o
 $inputConfiguration = [
     [
         'staticKeyFilters'         => [
-        'page'                     => 'username',         //get
+        'page'                     => 'pagename',         //get
         'rename'                   => 'bool',             //post
         'confirm'                  => 'bool',             //post
         'badname'                  => 'pagename',             //post


=====================================
tiki-rollback.php
=====================================
@@ -8,7 +8,7 @@ $inputConfiguration = [
     [
         'staticKeyFilters'         => [
         'page'                     => 'pagename',           //get
-        'version'                  => 'digits',             //post
+        'version'                  => 'int',                //post
         'rollback'                 => 'bool',               //post
         'comment'                  => 'text',               //post
         ],


=====================================
tiki-search_replace.php
=====================================
@@ -13,16 +13,16 @@ $inputConfiguration = [
     [ 'staticKeyFilters'          => [
                 'searchtext'      => 'xss',             //post
                 'replacetext'     => 'xss',             //post
-                'maxRecords'      => 'digits',          //post
-                'offset'          => 'digits',          //post
-                'paddingLength'   => 'digits',          //post
-                'categId'         => 'digits',          //post
+                'maxRecords'      => 'int',             //post
+                'offset'          => 'int',             //post
+                'paddingLength'   => 'int',               //post
+                'categId'         => 'int',             //post
                 'casesensitive'   => 'bool',            //post
                 'replace'         => 'bool',            //post
                 'search'          => 'bool',            //post
     ],
     'staticKeyFiltersForArrays'   => [
-        'checked'                 => 'digits',          //post
+        'checked'                 => 'int',             //post
     ],
     ]
 ];


=====================================
tiki-search_stats.php
=====================================
@@ -8,8 +8,8 @@ $inputConfiguration = [
     [
         'staticKeyFilters'         => [
         'clear'                    => 'bool',              //post
-        'sort_mode'                => 'word',             //post
-        'offset'                   => 'digits',            //post
+        'sort_mode'                => 'alnumdash',         //get
+        'offset'                   => 'int',               //get
         'find'                     => 'string',            //post
         ],
     ],


=====================================
tiki-send_newsletters.php
=====================================
@@ -15,7 +15,7 @@ $inputConfiguration = [
             'nlId'                 => 'digits',            //post
             'cancel'               => 'bool',              //post
             'editionId'            => 'digits',            //post
-            'sendingUniqId'        => 'bool',              //post
+            'sendingUniqId'        => 'text',              //post
             'cookietab'            => 'digits',            //post
             'resend'               => 'bool',              //post
             'remove'               => 'int',               //get
@@ -33,7 +33,7 @@ $inputConfiguration = [
             'datatxt'              => 'text',              //post
             'replyto'              => 'email',             //post
             'sendfrom'             => 'email',             //post
-            'usedTpl'              => 'bool',              //post
+            'usedTpl'              => 'text',              //post
             'save'                 => 'bool',              //post
             'resendEditionId'      => 'bool',              //post
             'begin'                => 'bool',              //post
@@ -41,13 +41,17 @@ $inputConfiguration = [
             'ticket'               => 'string',               //post
             'clipArticles'         => 'bool',              //post
             'articleClip'          => 'text',              //post
-            'ed_sort_mode'         => 'word',              //get
-            'dr_sort_mode'         => 'word',              //get
+            'dataparsed'           => 'none',              //post
+            'ed_sort_mode'         => 'alnumdash',         //get
+            'dr_sort_mode'         => 'alnumdash',         //get
             'ed_offset'            => 'int',               //get
             'dr_offset'            => 'int',               //get
             'ed_find'              => 'word',              //post
             'dr_find'              => 'word',              //post
         ],
+        'staticKeyFiltersForArrays' => [
+            'newsletterfile'       => 'text',              //post
+        ],
     ],
 ];
 


=====================================
tiki-send_objects.php
=====================================
@@ -7,20 +7,21 @@
 $inputConfiguration = [
     [
         'staticKeyFilters'         => [
-            'username'             => 'digits',            //post
-            'path'                 => 'bool',              //post
-            'site'                 => 'digits',            //post
+            'username'             => 'username',          //post
+            'path'                 => 'text',              //post
+            'site'                 => 'url',               //post
             'password'             => 'password',          //post
             'dbg'                  => 'bool',              //post
-            'find'                 => 'string',            //post
+            'find'                 => 'text',              //post
             'addpage'              => 'bool',              //post
             'pageName'             => 'pagename',          //post
             'clearpages'           => 'bool',              //post
             'addstructure'         => 'bool',              //post
-            'structure'            => 'string',            //post
+            'structure'            => 'int',               //post
             'clearstructures'      => 'bool',              //post
             'addarticle'           => 'bool',              //post
             'articleId'            => 'int',               //post
+            'cleararticles'        => 'alpha',             //post
             'send'                 => 'bool',              //post
         ],
         'staticKeyFiltersForArrays' => [


=====================================
tiki-share.php
=====================================
@@ -20,21 +20,22 @@ $inputConfiguration = [
             'do_email'                             => 'bool',                //post
             'do_tweet'                             => 'bool',                //post
             'do_fb'                                => 'bool',                //post
-            'fblike'                               => 'digits',              //post
-            'priority'                             => 'digits',              //post
+            'fblike'                               => 'int',                 //post
+            'priority'                             => 'int',                 //post
             'do_message'                           => 'bool',                //post
-            'forumId'                              => 'digits',              //post
+            'forumId'                              => 'int',                 //post
             'url'                                  => 'url',                 //post
-            'shorturl'                             => 'bool',                //post
+            'shorturl'                             => 'url',                 //post
             'subject'                              => 'string',              //post
             'send'                                 => 'bool',                //post
             'comment'                              => 'text',                //post
-            'share_token_notification'             => 'string',              //post
-            'msg_share_token_notification'         => 'string',              //post
+            'share_token_notification'             => 'alpha',               //post
+            'msg_share_token_notification'         => 'alpha',               //post
             'share_access_rights'                  => 'bool',                //post
             'share_access'                         => 'bool',                //post
             'msg_share_access'                     => 'bool',                //post
             'how_much_time_access'                 => 'int',                 //post
+            'msg_how_much_time_access'             => 'int',                 //post
             'addresses'                            => 'email',               //post
             'name'                                 => 'string',              //post
             'email'                                => 'email',               //post
@@ -44,6 +45,8 @@ $inputConfiguration = [
             'replyto_hash'                         => 'string',              //post
             'body'                                 => 'xss',                 //post
             'forum_password'                       => 'password',            //post
+            'tweet'                                => 'text',                //post
+            'back_url'                             => 'url',                 //post
         ],
     ],
 ];


=====================================
tiki-sheets.php
=====================================
@@ -13,11 +13,16 @@ $inputConfiguration = [
     [
         'staticKeyFilters'         => [
             'sheetId'              => 'int',                 //post
-            'edit_mode'            => 'bool',                //post
+            'edit_mode'            => 'alpha',               //post
             'title'                => 'striptags',           //post
             'find'                 => 'striptags',           //post
             'edit'                 => 'bool',                //post
             'description'          => 'xss',                 //post
+            'parseValues'          => 'alpha',               //post
+            'creator'              => 'username',            //post
+            'parentSheetId'        => 'int',                 //post
+            'sort_mode'            => 'alnumdash',           //get
+            'offset'               => 'int',                 //get
         ],
     ],
 ];


=====================================
tiki-shoutbox.php
=====================================
@@ -17,9 +17,9 @@ $inputConfiguration = [
             'shoutbox_autolink'            => 'bool',                //post
             'save'                         => 'bool',                //post
             'message'                      => 'text',                //post
-            'tweet'                        => 'bool',                //post
-            'sort_mode'                    => 'word',                //get
-            'offset'                       => 'digits',              //get
+            'tweet'                        => 'int',                 //post
+            'sort_mode'                    => 'alnumdash',           //get
+            'offset'                       => 'int',                 //get
             'find'                         => 'text',                //post
         ],
     ],



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/875d2a48c34cc441c4d774b76a2536a2adc861ee

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/875d2a48c34cc441c4d774b76a2536a2adc861ee
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.