3.1.9 XML tags werden bei Bearbeitung entfernt

Please report bugs here!

Moderator: Thorsten

Post Reply
lbanik
Posts: 5
Joined: Thu Jan 19, 2023 12:19 pm

3.1.9 XML tags werden bei Bearbeitung entfernt

Post by lbanik »

Hallo,

es scheint als gäbe es wieder das Problem,
dass jegliche XML tags beim Editieren eines Beitrags entfernt werden.
Egal ob Textfeld oder Code sample.

Vgl.: viewtopic.php?f=3&t=10594&p=31156&hilit ... tax#p31156
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by Thorsten »

Hi,

ich schau mir das Problem an.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by Thorsten »

Hi,

ich hab es gerade in der 3.1.10 getestet und es klappt.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lbanik
Posts: 5
Joined: Thu Jan 19, 2023 12:19 pm

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by lbanik »

Hi Thorsten,

vllt. habe ich mich auch falsch ausgedrückt, da ich in dem Thema recht neu bin.
Ich habe mal die 3.1.10 testweise aufgesetzt.
Anbei ein Screenshot 1 während der Bearbeitung und Screenshot 2 nachdem ich auf "Speichern" geklickt hatte.

Gruß banik
You do not have the required permissions to view the files attached to this post.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by Thorsten »

Hi,

how do you format it?

Do you use Code?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lbanik
Posts: 5
Joined: Thu Jan 19, 2023 12:19 pm

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by lbanik »

Hi,

ive recorded a short video of our problem:
https://www.loom.com/share/3960aab57c57 ... b0aa452a6c

I've tried to use "Formats->Blocks->code" if thats what you meant.

But even with the "Insert/Edit code sample" and XML selected, or pasted with "Paste as text" everything just gets cut.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by Thorsten »

Hi,

you're right.

It works with "Formats -> Blocks -> Code" but not the other ones.

I'll check it if I can fix it, as workaround you should use the working process.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
lbanik
Posts: 5
Joined: Thu Jan 19, 2023 12:19 pm

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by lbanik »

Hi Thorsten,

unfortunately formatting the text via "Formats -> Blocks -> Code" does not work for me.
The next time I try to edit the entry, everything gets stripped again.

lbanik
lbanik
Posts: 5
Joined: Thu Jan 19, 2023 12:19 pm

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by lbanik »

Hi there,

fixed my issue with the following:
\phpmyfaq\admin\record.edit.php

Line 217:
$faqData['content'] = (isset($faqData['content']) ? trim(Strings::htmlentities($faqData['content'],ENT_COMPAT,'utf-8',true)) : '');

Thanks for the support :)
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: 3.1.9 XML tags werden bei Bearbeitung entfernt

Post by Thorsten »

Hi,

yes, that works! I added your fix for the upcoming 3.1.12 release!

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply