[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 <691316a67e887_2ce2acc41221@gitlab-sidekiq-low-urgency-cpu-bound-v2-7c6d68b685-2t96q.mail>

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


Commits:
852cb8fd by Espoir Baraka at 2025-11-11T10:49:48+00:00
[ENH] Enhance tiki filter
---
* [ENH] Enhance tiki filter

See merge request tikiwiki/tiki!9001

- - - - -


10 changed files:

- tiki-socialnetworks_firstlogin.php
- tiki-stats.php
- tiki-survey_stats.php
- tiki-survey_stats_survey.php
- tiki-syslog.php
- tiki-take_survey.php
- tiki-theme_control.php
- tiki-theme_control_objects.php
- tiki-user_assigned_modules.php
- tiki-user_bookmarks.php


Changes:

=====================================
tiki-socialnetworks_firstlogin.php
=====================================
@@ -14,7 +14,7 @@ $inputConfiguration = [
             'localinfosubmit'             => 'bool',                //post
             'name'                        => 'striptags',           //post
             'email'                       => 'email',               //post
-            'chosenGroup'                 => 'bool',                //post
+            'chosenGroup'                 => 'text',                //post
             'linkaccount'                 => 'bool',                //post
             'userlogin'                   => 'username',            //post
             'userpass'                    => 'password',            //post


=====================================
tiki-stats.php
=====================================
@@ -15,16 +15,16 @@ define('TIKI_PRINTING_PDF', isset($_REQUEST['display']) && $_REQUEST['display']
 $inputConfiguration = [
     [
         'staticKeyFilters'     => [
-        'days'                 => 'digits',       //get
+        'days'                 => 'int',          //get
         'pv_chart'             => 'striptags',    //get
-        'chart'                => 'striptags',    //get
-        'startDate_Year'       => 'digits',       //get
-        'startDate_Month'      => 'digits',       //get
-        'startDate_Day'        => 'digits',       //get
-        'endDate_Year'         => 'digits',       //get
-        'endDate_Month'        => 'digits',       //get
-        'endDate_Day'          => 'digits',       //get
-        'display'              => 'striptags'
+        'chart'                => 'alnumdash',    //get
+        'startDate_Year'       => 'digits',       //post
+        'startDate_Month'      => 'digits',       //post
+        'startDate_Day'        => 'digits',       //post
+        'endDate_Year'         => 'digits',       //post
+        'endDate_Month'        => 'digits',       //post
+        'endDate_Day'          => 'digits',       //post
+        'display'              => 'striptags',    //get
         ],
         'catchAllUnset' => null
     ],


=====================================
tiki-survey_stats.php
=====================================
@@ -12,9 +12,9 @@ $section = 'surveys';
 $inputConfiguration = [
     [
         'staticKeyFilters'   => [
-        'sort_mode'          => 'word',              //get
+        'sort_mode'          => 'alnumdash',         //get
         'offset'             => 'int',               //get
-        'find'               => 'string',            //post
+        'find'               => 'text',              //post
         ],
     ],
 ];


=====================================
tiki-survey_stats_survey.php
=====================================
@@ -9,10 +9,11 @@ $inputConfiguration = [
     [
         'staticKeyFilters'   => [
         'surveyId'           => 'int',               //get
-        'clear'              => 'int',               //get
-        'sort_mode'          => 'word',              //get
+        'clear'              => 'int',               //post
+        'sort_mode'          => 'alnumdash',         //get
         'offset'             => 'int',               //get
-        'find'               => 'string',            //post
+        'find'               => 'text',              //post
+        'print'              => 'alpha',             //get
         ],
     ],
 ];


=====================================
tiki-syslog.php
=====================================
@@ -11,12 +11,14 @@
 $inputConfiguration = [
     [
         'staticKeyFilters'   => [
-        'clean'              => 'bool',              //post
-        'months'             => 'int',               //post
-        'sort_mode'          => 'word',              //get
+        'clean'              => 'bool',              //get
+        'months'             => 'int',               //get
+        'sort_mode'          => 'alnumdash',         //get
         'offset'             => 'int',               //get
         'max'                => 'int',               //get
-        'find'               => 'string',            //post
+        'find'               => 'text',              //post
+        'actionId'           => 'int',               //post
+        'page'               => 'alnumdash',         //post
         ],
     ],
 ];


=====================================
tiki-take_survey.php
=====================================
@@ -12,9 +12,9 @@ $section = 'surveys';
 $inputConfiguration = [
     [
         'staticKeyFilters'     => [
-        'surveyId'             => 'digits',       //get
-        'ans'                  => 'striptags',    //post
-        'vote'                 => 'striptags',    //post
+        'surveyId'             => 'int',          //get
+        'ans'                  => 'alpha',        //post
+        'vote'                 => 'alpha',        //post
         ],
     ],
 ];


=====================================
tiki-theme_control.php
=====================================
@@ -13,12 +13,14 @@ $inputConfiguration = [
         'staticKeyFilters'   => [
         'categId'            => 'int',               //post
         'categoryId'         => 'int',               //post
-        'theme'              => 'word',              //post
-        'delete'             => 'int',               //get
-        'categoryIds'        => 'int',               //get
-        'sort_mode'          => 'word',              //get
+        'theme'              => 'alnumdash',         //post
+        'delete'             => 'alpha',             //post
+        'sort_mode'          => 'alnumdash',         //get
         'offset'             => 'int',               //get
-        'find'               => 'word',              //post
+        'find'               => 'text',              //post
+        ],
+        'staticKeyFiltersForArrays' => [
+        'categoryIds'        => 'int',               //post
         ],
     ],
 ];


=====================================
tiki-theme_control_objects.php
=====================================
@@ -11,15 +11,17 @@
 $inputConfiguration = [
     [
         'staticKeyFilters'   => [
-        'objdata'            => 'word',              //post
-        'type'               => 'word',              //post
-        'assign'             => 'bool',              //post
-        'theme'              => 'word',              //post
+        'objdata'            => 'text',              //post
+        'type'               => 'text',              //post
+        'assign'             => 'alpha',             //post
+        'theme'              => 'alnumdash',         //post
         'delete'             => 'int',               //get
-        'obj'                => 'int',               //get
-        'sort_mode'          => 'word',              //get
+        'sort_mode'          => 'alnumdash',         //get
         'offset'             => 'int',               //get
-        'find'               => 'string',            //post
+        'find'               => 'text',              //post
+        ],
+        'staticKeyFiltersForArrays' => [
+        'obj'                => 'int',               //post
         ],
     ],
 ];


=====================================
tiki-user_assigned_modules.php
=====================================
@@ -13,11 +13,11 @@ $inputConfiguration = [
     [
         'staticKeyFilters'     => [
         'recreate'             => 'bool',         //post
-        'unassign'             => 'digits',       //post this is the moduleId to unassign
-        'assign'               => 'bool',         //post
+        'unassign'             => 'int',          //post this is the moduleId to unassign
+        'assign'               => 'alpha',        //post
         'module'               => 'digits',       //post
-        'position'             => 'striptags',    //post
-        'order'                => 'striptags',    //post
+        'position'             => 'alpha',        //post
+        'order'                => 'int',          //post
         'up'                   => 'digits',       //post
         'down'                 => 'digits',       //post
         'left'                 => 'digits',       //post


=====================================
tiki-user_bookmarks.php
=====================================
@@ -12,14 +12,16 @@ $section = 'mytiki';
 $inputConfiguration = [
     [
         'staticKeyFilters'   => [
-        'parentId'           => 'int',               //post
+        'parentId'           => 'int',               //get
         'editfolder'         => 'int',               //get
         'editurl'            => 'int',               //get
         'addfolder'          => 'bool',              //post
-        'foldername'         => 'word',              //post
+        'foldername'         => 'text',              //post
         'removefolder'       => 'int',               //get
-        'addurl'             => 'bool',              //post
-        'urlname'            => 'word',              //post
+        'addurl'             => 'alpha',             //post
+        'urlname'            => 'text',              //post
+        'urlurl'             => 'text',              //post
+        'refreshurl'         => 'int',               //get/post
         'removeurl'          => 'int',               //get
         ],
     ],



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/852cb8fd4ace27ca3a9f2d755e6b8883b11e9986

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