grave accent / back quote BUG

Please report bugs here!

Moderator: Thorsten

Post Reply
charlydiru
Posts: 8
Joined: Wed Feb 06, 2013 12:45 pm

grave accent / back quote BUG

Post by charlydiru »

Hello,

when i create a FAQ with this quote character "`" used in linux script to run some command into another, it is well shown in the editor, and also in the mySQL database but when I look for that FAQ from user interface the character "`" is changed to "´" so I cant copy and paste the linux commands directly to my bash.

Thank you in advance.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: grave accent / back quote BUG

Post by Thorsten »

Hi,

yes, this is a security feature in our template engine. If you want, I can show you where you can remove this.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
charlydiru
Posts: 8
Joined: Wed Feb 06, 2013 12:45 pm

Re: grave accent / back quote BUG

Post by charlydiru »

Yes i would be glad if you could provide me with that information.

Thank you for your quick reply.

Best regards

Carlos
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: grave accent / back quote BUG

Post by Thorsten »

phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
charlydiru
Posts: 8
Joined: Wed Feb 06, 2013 12:45 pm

Re: grave accent / back quote BUG

Post by charlydiru »

Hi, thank you for your reply.

I tried commenting this line that you posted:

#$content = str_replace('`', '´', $content);

but the result was not the expected. The back quote is not changed anymore but now the quote is not shown.
I mean, if I edit a FAQ like this:

`hello`

it is shown this:

hello

I would be glad if you could help me again.
Thank you in advance.

Carlos
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: grave accent / back quote BUG

Post by Thorsten »

Hi,

sorry, it's removed here:

https://github.com/thorsten/phpMyFAQ/bl ... e.php#L367

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
charlydiru
Posts: 8
Joined: Wed Feb 06, 2013 12:45 pm

Re: grave accent / back quote BUG

Post by charlydiru »

Hi Thorsten.
Thank you very much, it worked!
Thank you again.

Bye
Carlos
Post Reply