Double quotes truncating Question text

Please report bugs here!

Moderator: Thorsten

Post Reply
immewnity
Posts: 6
Joined: Tue Oct 13, 2020 6:11 pm

Double quotes truncating Question text

Post by immewnity »

EDIT: Reported on GitHub: https://github.com/thorsten/phpMyFAQ/issues/1833

Issue: If I have double quotes in my question, they get stripped away when going in to edit again.

Steps to reproduce:
  1. Navigate to Add new FAQ (/admin/?action=editentry).
  2. Create an entry with the title:

    Code: Select all

    This is a "test" FAQ?
    and the contents:

    Code: Select all

    Yes, this is a "test" FAQ.
  3. Click Save.
  4. Navigate to Edit existing FAQs (/admin/?action=view).
  5. Click on the question we just created to edit it.
  6. Notice that the question now says:

    Code: Select all

    This is a 

Code: Select all

phpMyFAQ Version: 3.0.4
phpMyFAQ API Version: 2.0
Server Software: Apache
Server Document Root: /home3/thepokh7/public_html
phpMyFAQ Installation Path: /home3/thepokh7/public_html/cpdm
PHP Version: 7.3.23
Web server Interface: CGI-FCGI
PHP Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, readline, Reflection, SPL, session, standard, cgi-fcgi, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, json, exif, mysqlnd, odbc, PDO, pgsql, Phar, posix, pspell, SimpleXML, soap, sockets, sqlite3, tidy, tokenizer, xml, xmlwriter, xsl, zip, mysqli, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, wddx, xmlreader, xmlrpc, imagick, ionCube Loader
PHP Session path: /var/cpanel/php/sessions/ea-php70
Database Server: mysqli
Database Server Version: 5.6.41-84.1
Database Client Version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $
Elasticsearch Version: n/a
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Double quotes truncating Question text

Post by Thorsten »

Hi,

thanks for your bug report, I'll check it.

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: Double quotes truncating Question text

Post by Thorsten »

Hi,

fixed for 3.0.5 and 3.1.0-alpha.

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