[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 <6939003dd9c7f_2a17db5853b@gitlab-sidekiq-low-urgency-cpu-bound-v2-6c45f4479c-h5l8w.mail>

Victor Emanouilov pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
186f9b2b by Yves Ngalamulume at 2025-12-10T04:59:04+00:00
[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

- - - - -


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/186f9b2b24066e4701196fa9907720d8667d91e6

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