[TikiWiki-commits] [Git][tikiwiki/tiki][29.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 <698c7e90c1283_3b1850ec19a1@gitlab-sidekiq-low-urgency-cpu-bound-v2-67b895b796-5j7hh.mail>

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


Commits:
e0423d6d by Merci Jacob at 2026-02-11T13:05:16+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
=====================================
@@ -378,9 +378,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/e0423d6d4800e80f8b25118ee3b7450cf6fde49b

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