[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][FIX] Tikilib: fixed function convertAbsoluteLinksToRelative

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68f1142422003_2c14a43a8753a1@gitlab-sidekiq-low-urgency-cpu-bound-v2-7b6ddfc475-qjqn7.mail>

ushindi bienvenu pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
5ebcc1ae by Landry Bitege at 2025-10-16T15:43:09+00:00
[BP][FIX] Tikilib: fixed function convertAbsoluteLinksToRelative
---
* [FIX] Tikilib: fixed function convertAbsoluteLinksToRelative
---
* [FIX] Tikilib: fixed function convertAbsoluteLinksToRelative

See merge request tikiwiki/tiki!5519

(cherry picked from commit eb2a87082f702cb7b774942a19dd25a3a60ba274)

See merge request tikiwiki/tiki!8794

- - - - -


1 changed file:

- lib/tikilib.php


Changes:

=====================================
lib/tikilib.php
=====================================
@@ -2826,8 +2826,11 @@ class TikiLib extends TikiDb_Bridge
             }
         }
 
-        foreach ($replace as $key => $body) {
-            $data = str_replace($key, $body, $data);
+        // Run twice to restore markers inside wiki plugins
+        for ($i = 0; $i < 2; $i++) {
+            foreach ($replace as $key => $body) {
+                $data = str_replace($key, $body, $data);
+            }
         }
 
         if ($notification) {



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

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