[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [FIX] Correct double-encoding of '&' in URLs generated by self_link and button handlers

"Victor Emanouilov \(@kroky\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <698dbcc3f2952_3b18543412274@gitlab-sidekiq-low-urgency-cpu-bound-v2-68fb999d6c-hj69t.mail>

Victor Emanouilov pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
ef5ade28 by Steven ngesera at 2026-02-12T11:35:22+00:00
[FIX] Correct double-encoding of '&' in URLs generated by self_link and button handlers
---
* [FIX] Correct double-encoding of '&' in URLs generated by self_link and button handlers
---
* [FIX] Double-encoding in SelfLink by conditionally disabling _urlencode only for tag mode

* [FIX] Double-encoding in SelfLink by disabling urlencode in query

* Add clarification comment explaining href normalization logic

* [FIX] Double-encoded URLs in SelfLink (normalize href before escaping)

* [FIX] Correct double-encoding of '&'

* [FIX] Correct double-encoding of '&' in URLs generated by self_link and button handlers

See merge request tikiwiki/tiki!9113

(cherry picked from commit 186f9b2b24066e4701196fa9907720d8667d91e6)

See merge request tikiwiki/tiki!9559

- - - - -


1 changed file:

- lib/smarty_tiki/BlockHandler/SelfLink.php


Changes:

=====================================
lib/smarty_tiki/BlockHandler/SelfLink.php
=====================================
@@ -103,6 +103,9 @@ class SelfLink extends Base
 
                 $params['_type'] = $default_type;
 
+                if (! empty($params['_tag']) && $params['_tag'] === 'y') {
+                    $params['_urlencode'] = 'n';
+                }
                 $ret = smarty_function_query($params, $template);
             }
 



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

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