[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 <68e99e4f6df77_2c7658183125c@gitlab-sidekiq-low-urgency-cpu-bound-v2-79c784b9f9-gjrzq.mail>

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


Commits:
1e9dab2c by Espoir Baraka at 2025-10-10T23:53:29+00:00
[ENH] Enhance tiki filter
---
* [ENH] Tiki filter on tiki-admin_menus.php

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

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

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

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

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

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

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

* [ENH] Enhance tiki filter

See merge request tikiwiki/tiki!8754

- - - - -


12 changed files:

- tiki-admin_cookies.php
- tiki-admin_credits.php
- tiki-admin_forums.php
- tiki-admin_hotwords.php
- tiki-admin_html_page_content.php
- tiki-admin_html_pages.php
- tiki-admin_ids.php
- tiki-admin_integrator_rules.php
- tiki-admin_links.php
- tiki-admin_mailin.php
- tiki-admin_menu_options.php
- tiki-admin_menus.php


Changes:

=====================================
tiki-admin_cookies.php
=====================================
@@ -18,7 +18,6 @@ $inputConfiguration = [
             'sort_mode'               => 'striptags',    //post
             'offset'                  => 'digits',       //post
             'find'                    => 'striptags',    //post
-            'add'                     => 'bool',         //post
             'save'                    => 'bool',         //post
             'upload'                  => 'bool',         //post
         ],


=====================================
tiki-admin_credits.php
=====================================
@@ -20,9 +20,8 @@ $inputConfiguration = [
             'use_credit_amount'     => 'float',       //post
             'restore_credit_type'   => 'striptags',   //post
             'restore_credit_amount' => 'float',       //post
-            'credit_types'          => 'striptags',   //post
             'display_text'          => 'striptags',   //post
-            'is_static_level'       => 'bool',        //post
+            'is_static_level'       => 'alpha',        //post
             'save'                  => 'bool',        //post
             'credit_type'           => 'striptags',   //post
             'new_credit_type'       => 'striptags',   //post
@@ -36,6 +35,7 @@ $inputConfiguration = [
         ],
         'staticKeyFiltersForArrays' => [
             'credits'               => 'striptags',   //post
+            'credit_types'          => 'striptags',   //post
             'delete'                => 'int',        //post
         ],
     ],


=====================================
tiki-admin_forums.php
=====================================
@@ -13,7 +13,7 @@ $inputConfiguration = [
         'staticKeyFilters'                     => [
             'forumId'                          => 'int',        //post
             'parentId'                         => 'int',        //post
-            'lock'                             => 'bool',        //post
+            'lock'                             => 'alpha',      //post
             'useMail'                          => 'bool',        //post
             'usePruneUnreplied'                => 'bool',        //post
             'controlFlood'                     => 'bool',        //post
@@ -72,7 +72,7 @@ $inputConfiguration = [
             'sort_mode'                        => 'striptags',   //get
             'dup_mode'                         => 'bool',        //post
             'find'                             => 'text',        //post
-            'moderator '                       => 'text',        //post
+            'moderator'                        => 'text',        //post
             'moderator_group'                  => 'groupname',   //post
             'forum_password'                   => 'password',    //post
             'outbound_address'                 => 'text',        //post


=====================================
tiki-admin_hotwords.php
=====================================
@@ -17,6 +17,7 @@ $inputConfiguration = [
              'remove'      => 'string',       //post
              'sort_mode'   => 'text',         //get
              'offset'      => 'int',          //get
+             'find'        => 'text',         //post
         ],
     ],
 ];


=====================================
tiki-admin_html_page_content.php
=====================================
@@ -17,10 +17,10 @@ $inputConfiguration = [
              'sort_mode'   => 'text',         //get
              'editmany'    => 'bool',         //post
              'save'        => 'bool',         //post
-             'content'     => 'text',         //get
+             'content'     => 'xss',          //post
              'zone'        => 'int',          //get
         ],
-        ],
+    ],
 ];
 require_once('tiki-setup.php');
 include_once('lib/htmlpages/htmlpageslib.php');


=====================================
tiki-admin_html_pages.php
=====================================
@@ -15,7 +15,7 @@ $inputConfiguration = [
              'offset'      => 'int',          //get
              'remove'      => 'pagename',     //get
              'templateId'  => 'int',          //post
-             'content'     => 'text',         //post
+             'content'     => 'xss',         //post
              'preview'     => 'bool',         //post
              'refresh'     => 'int',          //post
              'type'        => 'striptags',    //post


=====================================
tiki-admin_ids.php
=====================================
@@ -10,7 +10,7 @@ $inputConfiguration = [
              'rule_id'             => 'int',          //post
              'rule'                => 'int',          //get
              'new_rule'            => 'bool',         //post
-             'rule_regex'          => 'alpha',        //post
+             'rule_regex'          => 'text',         //post
              'editrule'            => 'bool',         //post
              'rule_description'    => 'text',         //post
              'rule_tags'           => 'text',         //post


=====================================
tiki-admin_integrator_rules.php
=====================================
@@ -12,21 +12,24 @@ $inputConfiguration = [
     [
         'staticKeyFilters'         => [
              'repID'               => 'int',          //post
+             'ruleID'              => 'int',          //post
+             'ord'                 => 'digits',       //post
              'srcrep'              => 'int',          //get
-             'srch'                => 'alpha',        //post
-             'repl'                => 'alpha',        //post
-             'description'         => 'alpha',         //post
-             'type'                => 'bool',         //post
+             'srch'                => 'text',         //post
+             'repl'                => 'text',         //post
+             'description'         => 'text',         //post
+             'rxmod'               => 'alpha',        //post
+             'type'                => 'alpha',        //post
              'file'                => 'text',         //post
-             'casesense'           => 'bool',         //post
-             'html'                => 'bool',         //post
-             'all'                 => 'bool',         //post
-             'enabled'             => 'bool',         //post
-             'copy'                => 'bool',         //post
-             'save'                => 'bool',         //post
-             'preview'             => 'bool',         //post
+             'casesense'           => 'alpha',        //post
+             'html'                => 'alpha',        //post
+             'all'                 => 'alpha',        //post
+             'enabled'             => 'alpha',        //post
+             'copy'                => 'alpha',        //post
+             'save'                => 'alpha',        //post
+             'preview'             => 'alpha',        //post
              'action'              => 'text',         //post
-             'code'                => 'bool',         //post
+             'code'                => 'alpha',        //post
         ],
     ],
 ];


=====================================
tiki-admin_links.php
=====================================
@@ -13,12 +13,12 @@ $inputConfiguration = [
         'staticKeyFilters'    => [
             'url'             => 'striptags',  //post
             'generate'        => 'int',        //get
-            'remove'          => 'url',        //post
+            'remove'          => 'url',        //get
             'editurl'         => 'url',        //post
             'title'           => 'striptags',  //post
-            'postion'         => 'int',        //post
+            'position'        => 'int',        //post
             'type'            => 'string',     //post
-            'add'             => 'bool',       //post
+            'add'             => 'alpha',      //post
         ],
     ],
 ];


=====================================
tiki-admin_mailin.php
=====================================
@@ -12,7 +12,8 @@ $inputConfiguration = [
     [
         'staticKeyFilters'            => [
             'mailin_autocheckFreq'    => 'int',  //post
-            'mailin_autocheck'        => 'bool', //post
+            'mailin_autocheck'        => 'alpha', //post
+            'set_auto'                => 'alpha', //post
         ],
     ],
 ];


=====================================
tiki-admin_menu_options.php
=====================================
@@ -11,9 +11,13 @@
 $inputConfiguration = [
     [
         'staticKeyFilters'    => [
-            'menuId'          => 'int',        //get
-            'preview_css'     => 'bool',       //post
-            'preview_type'    => 'striptags',  //post
+            'menuId'             => 'int',        //get
+            'deletemenu'         => 'int',        //post
+            'preview_type'       => 'striptags',  //post
+            'preview_bootstrap'  => 'alpha',      //post
+            'find'               => 'striptags',  //get
+            'sort_mode'          => 'alnumdash', //get
+            'offset'             => 'int',        //get
         ],
     ],
 ];


=====================================
tiki-admin_menus.php
=====================================
@@ -11,16 +11,19 @@
 $inputConfiguration = [
     [
         'staticKeyFilters'         => [
-             'menuId'               => 'int',            //post
-             'name'                 => 'alpha',          //post
-             'find'                 => 'alpha',          //post
+             'menuId'               => 'int',            //get
+             'name'                 => 'text',           //post
+             'find'                 => 'striptags',      //post
              'offset'               => 'int',            //get
-             'sort_mode'            => 'alpha',          //get
+             'sort_mode'            => 'alnumdash',      //get
              'remove'               => 'int',            //post
-             'use_items_icons'      => 'bool',           //post
-             'parse'                => 'bool',           //get
-             'description'          => 'xss',            //get
-             'type'                 => 'string',         //get
+             'save'                 => 'alpha',          //post
+             'icon'                 => 'text',           //post
+             'use_items_icons'      => 'alpha',          //post
+             'parse'                => 'alpha',          //post
+             'description'          => 'xss',            //post
+             'type'                 => 'string',         //post
+             'reset'                => 'alpha',          //get
         ],
     ],
 ];



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/1e9dab2c65c911292891cb2663dc33f27c99988b

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