Loading...
 
Skip to main content

Tiki tag ~ hs ~ is lost on wiki page duplication

Status
Closed
Subject
Tiki tag ~ hs ~ is lost on wiki page duplication
Version
21.x
24.x
Category
  • Bug
Feature
Wiki (page view, edit, history, rename, etc)
Resolution status
Confirmed
Submitted by
Jean-Marc Libs
Volunteered to solve
Jean-Marc Libs
Lastmod by
Jean-Marc Libs
Rating
(0)
Description

With the following Tiki configuration:

Pref value
wysiwyg_default y
wysiwyg_htmltowiki n


If I create a page which contains ~ hs~ (no space between ~ and hs), it works well as invisible hard spaces.
If I copy this page (from wiki → list pages → cogweel → copy), the new page displays ~ hs~ instead of white spaces.

The root cause is, the first page has attribute is_html=0 but the copy has is_html=1.

Solution

Some code in lib/tikilib.php : function create_page() does not check that wysiwyg is actually set.

https://gitlab.com/tikiwiki/tiki/-/commit/f8c2b018f93303f084dff5cc1a1e542c65e49cc3Question (reverted)

Ohhh, I see it's fixed in master (and only in master): https://gitlab.com/tikiwiki/tiki/-/commit/f11c2a48a46806ff18086508590baa97a7c8325eQuestion

Now backported (2023-06-05)

Importance
5
Easy to solve?
5
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
8411
Created
Tuesday 16 May, 2023 15:25:51 UTC
by Jean-Marc Libs
LastModif
Sunday 04 June, 2023 22:12:12 UTC


Show PHP error messages