[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX]: Review Tiki forums and all related features
Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6933589875a2c_2a347d06c89891@gitlab-sidekiq-low-urgency-cpu-bound-v2-78d969c448-qv7lc.mail> |
Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
ede813ce by Grace Nshokano at 2025-12-05T22:00:46+00:00
[FIX]: Review Tiki forums and all related features
---
* Delete blanck space
* [FIX] title preview duplication by moving encoding logic
* [FIX] make sure title is preview before saving a new topic
See merge request tikiwiki/tiki!8912
- - - - -
1 changed file:
- tiki-view_forum.php
Changes:
=====================================
tiki-view_forum.php
=====================================
@@ -281,12 +281,13 @@ if (isset($_REQUEST['comments_remove']) && isset($_REQUEST['comments_threadId'])
$smarty->assign('comments_threadId', 0);
}
+if (isset($_comments_title_decoded)) {
+ // Encode back comment_title before display to avoid specials characters
+ $_comments_title_encoded = htmlspecialchars($_comments_title_decoded);
+}
+
if ($_REQUEST['comments_threadId'] > 0) {
$comment_info = $commentslib->get_comment($_REQUEST['comments_threadId']);
- if (isset($_comments_title_decoded)) {
- // Encode back comment_title before display to avoid specials characters
- $_comments_title_encoded = htmlspecialchars($_comments_title_decoded);
- }
$smarty->assign('comment_title', $_comments_title_encoded ?? $comment_info['title']);
$smarty->assign('comment_data', $_REQUEST['comments_data'] ?? $comment_info['data']);
$smarty->assign(
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ede813cee857913f18023ec02bb91b45ed7a3fe7
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/ede813cee857913f18023ec02bb91b45ed7a3fe7
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