rn appears in text

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

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

Post by Thorsten »

Hi,

I thought I had an idea but when I saw your phpinfo page the idea went away... I'm still thnking about the problem and talking about that with PHP core developers.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tommo
Posts: 36
Joined: Mon Aug 01, 2005 4:48 pm

Post by tommo »

Hi Thorsten...

Sorry to raise this again :oops: but do you have any clues yet that may lead to a fix?

I've been offered about 5000 articles to post on the site but that would take me about a year to remove all the rn's from every submission...

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

Post by Thorsten »

Hi Mark,

please send me an e-mail as a reminder. I've got some free time next week so I can work on a fix for your issue.

bye
Thortsen
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
ilista
Posts: 2
Joined: Wed Sep 28, 2005 4:59 pm

rn in text

Post by ilista »

I get it too. I seem to only have it when I'm pasting from Microsoft Word.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I tested this with upcoming phpMyFAQ 1.5.3 and I cannot reproduce this with pasting from MS Word. Do you have a phpinfo() page for me?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tommo
Posts: 36
Joined: Mon Aug 01, 2005 4:48 pm

Post by tommo »

Thorsten wrote:Hi,

I tested this with upcoming phpMyFAQ 1.5.3 and I cannot reproduce this with pasting from MS Word. Do you have a phpinfo() page for me?

bye
Thorsten

http://www.freezine-articles.com/info.php

I pm'd you the login details a few weeks ago feel free to add a few articles and then log in.

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

Post by Thorsten »

Hi,

I could reproduce this issue. It only happened when a entry was written in the public frontend, right?

I fixed it and it should be available tomorrow in the stable CVS snapshot. The fix will be in 1.5.3

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tommo
Posts: 36
Joined: Mon Aug 01, 2005 4:48 pm

Post by tommo »

Thorsten wrote:Hi,

I could reproduce this issue. It only happened when a entry was written in the public frontend, right?

I fixed it and it should be available tomorrow in the stable CVS snapshot. The fix will be in 1.5.3

bye
Thorsten
yes, if an article is written in the front end or pasted in the front end..

Thanks for fixing this, Is there 1 particular i can change or will i need the full CVS install

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

Post by Thorsten »

Hi,

you can change the both lines in save.php from

Code: Select all

$content = $db->escape_string(safeSQL(safeHTML(nl2br($_POST["content"]))));
    $contentlink = $db->escape_string(safeSQL(safeHTML($_POST["contentlink"])));
to

Code: Select all

$content = $db->escape_string(safeHTML(nl2br($_POST["content"])));
    $contentlink = $db->escape_string(safeHTML($_POST["contentlink"]));
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
tommo
Posts: 36
Joined: Mon Aug 01, 2005 4:48 pm

Post by tommo »

Thorsten wrote:Hi,

you can change the both lines in save.php from

Code: Select all

$content = $db->escape_string(safeSQL(safeHTML(nl2br($_POST["content"]))));
    $contentlink = $db->escape_string(safeSQL(safeHTML($_POST["contentlink"])));
to

Code: Select all

$content = $db->escape_string(safeHTML(nl2br($_POST["content"])));
    $contentlink = $db->escape_string(safeHTML($_POST["contentlink"]));
bye
Thorsten

Thank you that works perfectly.... :P Can't believe that safeSQL could cause so many problems! :lol:
Post Reply