[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Update WYSIWYG parameter handling to accept boolean values and adjust input validation

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]> Thu, 23 Jul 2026 16:20:48 +0000
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a623f5fe6303_3840d7c5425056@gitlab-sidekiq-low-urgency-cpu-bound-v2-7d8cd68bcd-7vdgj.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
5ad2ac64 by Yves Ngalamulume at 2026-07-23T16:03:42+00:00
[FIX] Update WYSIWYG parameter handling to accept boolean values and adjust input validation
---
* [FIX] Update WYSIWYG parameter handling to accept boolean values and adjust input validation

* [FIX] Invalid WYSIWYG parameter when rendering blog post editor

* [FIX] Incorrect dark color in fivealive raspberry sub-theme

* [FIX] Raspberry theme header background overridden by Bootstrap navbar color

See merge request tikiwiki/tiki!10087

- - - - -


1 changed file:

- lib/setup/editmode.php


Changes:

=====================================
lib/setup/editmode.php
=====================================
@@ -26,7 +26,9 @@ if ($prefs['feature_wysiwyg'] == 'y') {
         } elseif (isset($_REQUEST['mode_normal']) && $_REQUEST['mode_normal'] == 'y') {
             $_SESSION['wysiwyg'] = 'n';
         } elseif (isset($_REQUEST['wysiwyg'])) {
-            if (! in_array($_REQUEST['wysiwyg'], ['y', 'n'])) {
+            if (is_bool($_REQUEST['wysiwyg'])) {
+                $_REQUEST['wysiwyg'] = $_REQUEST['wysiwyg'] ? 'y' : 'n';
+            } elseif (! in_array($_REQUEST['wysiwyg'], ['y', 'n'], true)) {
                 throw new Exception('Invalid wysiwyg parameter');
             }
             $_SESSION['wysiwyg'] = $_REQUEST['wysiwyg'];



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/5ad2ac647de44f74a9456799c81f9785dcb3a011

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/5ad2ac647de44f74a9456799c81f9785dcb3a011
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs