[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Cypht plugin: Changes to server-information parameters do not take...

"Merci Jacob \(@mercihabam\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <698c7ea82149e_3b49fea892127@gitlab-sidekiq-low-urgency-cpu-bound-v2-67b895b796-vr6h2.mail>

Merci Jacob pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
83f5a00e by Merci Jacob at 2026-02-11T13:05:38+00:00
[FIX] Cypht plugin: Changes to server-information parameters do not take effect because the cached version is used in most cases
---
* [FIX] Cypht plugin: Changes to server-information parameters do not take effect because the cached version is used in most cases

See merge request tikiwiki/tiki!9118


(cherry picked from commit 568bbe8aeba626b8616b21720eeaba2a2684570a)

fd7f6372 [FIX] Cypht plugin: Changes to server-information parameters do not take...

Co-authored-by: Merci Jacob <[email protected]>
- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_cypht.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_cypht.php
=====================================
@@ -381,9 +381,16 @@ function wikiplugin_cypht($data, $params)
             $_SESSION[$session_prefix]['user_data']['imap_servers'] = [];
         }
         $found = false;
-        foreach ($_SESSION[$session_prefix]['user_data']['imap_servers'] as $server) {
+        foreach ($_SESSION[$session_prefix]['user_data']['imap_servers'] as $id => $server) {
             if ($server['server'] == $attributes['server'] && $server['tls'] == $attributes['tls'] && $server['port'] == $attributes['port'] && $server['user'] == $attributes['user']) {
                 $found = true;
+
+                if (array_diff($server, $attributes)) {
+                    TikiLib::lib('cache')->invalidate('imap_folders_imap_' . $id . '_');
+                    $headerlib->add_js("sessionStorage.clear();");
+                    $_SESSION[$session_prefix]['user_data']['imap_servers'][$id] = array_merge($server, $attributes);
+                }
+
                 break;
             }
         }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/83f5a00ee8fbcbe8812be807e0ed17ff0bc9b343

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