[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH]Tiki enhance filters

"Elifeleti Mukisa Dan \(@Danelif\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <691d71ada4007_2a17ed0013759@gitlab-sidekiq-low-urgency-cpu-bound-v2-558b59c8f8-sfjbj.mail>

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


Commits:
89539acb by Moïse Nturubika at 2025-11-19T07:20:46+00:00
[ENH]Tiki enhance filters
---
* [ENH] [ENH] Tiki filter on tiki-print_pages.php

* [ENH] [ENH] Tiki filter on tiki-poll_results.php

* [ENH] [ENH] Tiki filter on tiki-plugins.php

* [ENH] [ENH] Tiki filter on tiki-pick_avatar.php

* [ENH] [ENH] Tiki filter on tiki-performance_stats.php

* [ENH] [ENH] Tiki filter on tiki-peertube_video.php

* [ENH] [ENH] Tiki filter on tiki-pagehistory.php

* [ENH] [ENH] Tiki filter on tiki-page_contribution.php

* [ENH] [ENH] Tiki filter on tiki-old_polls.php

* [ENH] [ENH] Tiki filter on tiki-objectpermissions.php

* [ENH] [ENH] Tiki filter on tiki-notepad_write.php

* [ENH] [ENH] Tiki filter on tiki-notepad_read.php

* [ENH] [ENH] Tiki filter on tiki-notepad_list.php

See merge request tikiwiki/tiki!9055

- - - - -


13 changed files:

- tiki-notepad_list.php
- tiki-notepad_read.php
- tiki-notepad_write.php
- tiki-objectpermissions.php
- tiki-old_polls.php
- tiki-page_contribution.php
- tiki-pagehistory.php
- tiki-peertube_video.php
- tiki-performance_stats.php
- tiki-pick_avatar.php
- tiki-plugins.php
- tiki-poll_results.php
- tiki-print_pages.php


Changes:

=====================================
tiki-notepad_list.php
=====================================
@@ -10,10 +10,10 @@ $inputConfiguration = [
         'staticKeyFilters'     => [
         'merge'                => 'bool',        //get
         'delete'               => 'bool',        //post
-        'merge_name'           => 'string',      //post
-        'sort_mode'            => 'string',      //post
+        'merge_name'           => 'text',        //post
+        'sort_mode'            => 'alnumdash',   //post
         'offset'               => 'int',         //post
-        'find'                 => 'string',      //post
+        'find'                 => 'text',        //post
         ],
         'staticKeyFiltersForArrays' => [
             'note' => 'int',


=====================================
tiki-notepad_read.php
=====================================
@@ -17,7 +17,7 @@ $inputConfiguration = [
         'wikify'               => 'bool',        //post
         'over'                 => 'bool',        //post
         'wiki_name'            => 'pagename',    //post
-        'parse_mode'           => 'string',      //post
+        'parse_mode'           => 'word',        //post
         ],
         'staticKeyFiltersForArrays' => [
             'note' => 'int',


=====================================
tiki-notepad_write.php
=====================================
@@ -17,7 +17,7 @@ $inputConfiguration = [
         'save'                 => 'bool',       //post
         'name'                 => 'string',     //post
         'data'                 => 'none',       //post
-        'parse_mode'           => 'string',     //post
+        'parse_mode'           => 'word',       //post
         ],
     ],
 ];


=====================================
tiki-objectpermissions.php
=====================================
@@ -14,22 +14,23 @@ $inputConfiguration = [
         'objectId'               => 'string',        //get
         'objectType'             => 'string',       //post
         'objectName'             => 'string',       //post
-        'referer'                => 'string',     //post
-        'parentId'               => 'int',        //post
-        'permType'               => 'string',     //post
-        'assignstructure'        => 'bool',       //post
-        'propagate_category'     => 'bool',       //post
-        'feature_select'         => 'bool',       //post
-        'group_select'           => 'bool',       //post
-        'group'                  => 'grouname',   //post
-        'assign'                 => 'bool',       //post
-        'quick_perms'            => 'bool',       //post
-        'remove'                 => 'bool',       //post
-        'copy'                   => 'bool',       //post
-        'paste'                  => 'bool',       //post
-        'used_groups'            => 'bool',       //post
-        'show_disabled_features' => 'bool',       //post
-        'filegals_manager'       => 'word',       //post
+        'referer'                => 'url',          //post
+        'parentId'               => 'int',         //post
+        'permType'               => 'string',      //post
+        'assignstructure'        => 'bool',        //post
+        'propagate_category'     => 'bool',        //post
+        'feature_select'         => 'bool',        //post
+        'group_select'           => 'bool',        //post
+        'group'                  => 'groupname',   //post
+        'assign'                 => 'bool',        //post
+        'quick_perms'            => 'bool',        //post
+        'remove'                 => 'bool',        //post
+        'copy'                   => 'bool',        //post
+        'paste'                  => 'bool',        //post
+        'used_groups'            => 'bool',        //post
+        'show_disabled_features' => 'bool',        //post
+        'filegals_manager'       => 'word',        //post
+        'permission_scope_behavior' => 'word',     //post
         ],
         'staticKeyFiltersForArrays' => [
         'feature_filter'            => 'bool',       //post


=====================================
tiki-old_polls.php
=====================================
@@ -11,9 +11,9 @@
 $inputConfiguration = [
     [
         'staticKeyFilters'     => [
-        'sort_mode'            => 'word',        //get
-        'offset'               => 'digits',      //get
-        'find'                 => 'word',        //post
+        'sort_mode'            => 'alnumdash',   //get
+        'offset'               => 'int',         //get
+        'find'                 => 'text',        //post
         ],
     ],
 ];


=====================================
tiki-page_contribution.php
=====================================
@@ -13,8 +13,8 @@ $inputConfiguration = [
     [
         'staticKeyFilters'     => [
         'page'                 => 'pagename',        //get
-        'process'              => 'bool',          //post
-        'lastversion'          => 'digits',          //post
+        'process'              => 'int',            //post
+        'lastversion'          => 'int',            //post
         'show'                 => 'bool',            //post
         'showstatistics'       => 'bool',             //post
         'showpage'             => 'bool',             //post


=====================================
tiki-pagehistory.php
=====================================
@@ -17,7 +17,7 @@ $inputConfiguration = [
         'preview'                  => 'digits',            //get
         'flaggedrev'               => 'bool',              //post
         'approve'                  => 'digits',            //post
-        'unapprove'                => 'digits`',           //post
+        'unapprove'                => 'digits',            //post
         'paginate'                 => 'bool',              //post
         'diff_style'               => 'string',            //post
         'history_offset'           => 'digits',            //post


=====================================
tiki-peertube_video.php
=====================================
@@ -12,7 +12,7 @@
 $inputConfiguration = [
     [
         'staticKeyFilters' => [
-            'videoId' => 'word',
+            'videoId' => 'alnumdash',
             'action' => 'word',
             'name' => 'text',
             'description' => 'xss',


=====================================
tiki-performance_stats.php
=====================================
@@ -13,6 +13,7 @@ $inputConfiguration = [
         'average_stat_order'       => 'text',              //get
         'maximum_stat_offset'      => 'digits',            //get
         'maximum_stat_order'       => 'text',              //get
+        'no_of_requests'           => 'alpha',             //get
         ],
     ],
 ];


=====================================
tiki-pick_avatar.php
=====================================
@@ -14,7 +14,7 @@ $inputConfiguration = [
     [
         'staticKeyFilters'         => [
         'showall'                  => 'bool',            //get
-        'view_user'                => 'usename',         //post
+        'view_user'                => 'username',         //post
         'uselib'                   => 'bool',            //post
         'avatar'                   => 'none',            //get
         'reset'                    => 'bool',            //post


=====================================
tiki-plugins.php
=====================================
@@ -12,10 +12,15 @@
 $inputConfiguration = [
     [
         'staticKeyFilters'         => [
-        'approveone'               => 'bool',            //get
-        'clearone'                 => 'bool',            //get
+        'approveone'               => 'alnumdash',       //get
+        'clearone'                 => 'alnumdash',       //get
         'refresh'                  => 'bool',            //get
-        'offset'                   => 'digits',
+        'offset'                   => 'digits',          //get
+        'submit_mult'              => 'word',            //post
+        'approveall'               => 'bool',            //post
+        ],
+        'staticKeyFiltersForArrays' => [
+            'clear'                 => 'alnumdash',      //post
         ],
     ],
 ];


=====================================
tiki-poll_results.php
=====================================
@@ -26,14 +26,14 @@ $inputConfiguration = [
         'deletevote'               => 'bool',              //get
         'optionId'                 => 'digits',            //get
         'pollId'                   => 'digits',            //get
-        'user'                     => 'usename',           //get
+        'user'                     => 'username',          //get
         'ip'                       => 'text',              //post
         'scoresort_asc'            => 'text',              //get
         'scoresort_desc'           => 'text',              //get
         'list'                     => 'text',              //get
         'scoresort'                => 'text',              //get
-        'sort_mode'                => 'text',              //get
-        'offset'                   => 'digit',             //get
+        'sort_mode'                => 'alnumdash',        //get - used in SQL ORDER BY
+        'offset'                   => 'digits',           //get
         ],
     ],
 ];


=====================================
tiki-print_pages.php
=====================================
@@ -22,6 +22,7 @@ $inputConfiguration = [
         'clearpages'               => 'bool',                //post
         'clearstructures'          => 'bool',                //post
         'addstructurepages'        => 'bool',                //post
+        'addstructure'             => 'bool',                //post
         ],
         'staticKeyFiltersForArrays' => [
             'structureId'           => 'digits',       //post



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/89539acbc8e1f4c1630e976fd9466a2635f7f4bd

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/89539acbc8e1f4c1630e976fd9466a2635f7f4bd
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.