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

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

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


Commits:
42776d66 by Moïse Nturubika at 2025-10-06T20:48:44+00:00
[ENH] Tiki filters sanitization
---
* [ENH] Tiki filters sanitization

See merge request tikiwiki/tiki!8724

- - - - -


4 changed files:

- tiki-graph_sheet.php
- tiki-import_structuredtext.php
- tiki-interactive_trans.php
- tiki-invite.php


Changes:

=====================================
tiki-graph_sheet.php
=====================================
@@ -22,9 +22,9 @@ $inputConfiguration = [
         'sheetId'                         => 'int',               //get
         'graphic'                         => 'word',              //get
         'renderer'                        => 'word',              //get
-        'title'                           => 'word',              //get
-        'width'                           => 'word',              //get
-        'height'                          => 'word',              //get
+        'title'                           => 'text',              //get
+        'width'                           => 'int',              //get
+        'height'                          => 'int',              //get
         'format'                          => 'word',              //get
         'orientation'                     => 'word',              //get
         'independant'                     => 'bool',              //get


=====================================
tiki-import_structuredtext.php
=====================================
@@ -13,8 +13,8 @@ $inputConfiguration = [
         'staticKeyFilters'                => [
         'import'                          => 'bool',              //post
         'path'                            => 'string',            //post
-        'remo'                            => 'bool',              //post
-        'crunch'                          => 'bool',              //post
+        'remo'                            => 'alpha',              //post
+        'crunch'                          => 'alpha',              //post
         ],
     ],
 ];


=====================================
tiki-interactive_trans.php
=====================================
@@ -12,8 +12,10 @@ $inputConfiguration = [
     [
         'staticKeyFilters'                => [
         'interactive_translation_mode'    => 'word',              //get
-        'source'                          => 'text',              //get
-        'trans'                           => 'text',              //get
+        ],
+        'staticKeyFiltersForArrays'       => [
+        'source'                          => 'text',              //post
+        'trans'                           => 'text',              //post
         ],
     ],
 ];


=====================================
tiki-invite.php
=====================================
@@ -10,10 +10,10 @@ use Tiki\Lib\TikiDate;
 $inputConfiguration = [
     [
         'staticKeyFilters'                => [
-        'loadprevious'                    => 'word',              //post
+        'loadprevious'                    => 'int',              //post
         'emailslist'                      => 'xss',              //post
         'emailslist_format'               => 'word',              //post
-        'emailsubject'                    => 'word',              //post
+        'emailsubject'                    => 'text',              //post
         'emailcontent'                    => 'xss',               //post
         'wikicontent'                     => 'xss',               //post
         'wikipageafter'                   => 'pagename',          //post



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/42776d666d12fab89cc0d8d8a4199868d6876829

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