PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > ReviewPost Pro Support Forums > ReviewPost Bug Reports

ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost.

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 9 votes, 5.00 average. Display Modes
Old September 6th, 2005, 11:31 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
& and " for edit reviews.php/edit(FIXED)

If you enter say an ampersand or a quote into a review, then edit it, you're shown it in the format:

"test this & this"

Then when saving back it's changed into "&" etc etc.
Arnie is offline   Reply With Quote
Old September 6th, 2005, 01:48 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
well no one I know of would ever enter something like this. Any script I know of automatically will translate & to &

I would not call this a bug since our program translated the code when entering to the database & to the proper & and then grabbing from the database the code is then processed back into html so you purposely entering the code as already translated will result in what your getting. We properly convert & to & so your display would be correct given your situation

I hope I understand what you mean here as it sounds to me like your trying to enter something already translated.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; September 6th, 2005 at 01:51 PM.
Chuck S is online now   Reply With Quote
Old September 6th, 2005, 05:34 PM   #3 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
I think I know what you mean and yes this would be correct as allowing it to be redone into html could render you to XSS cross scripting attacks.

I think this would be the way to go in reviews.php add the line in bold which just translates quotes and thats all


if ( VB35 == "on" ) $ereviews = htmlspecialchars($ereviews);
else $ereviews = htmlspecialchars(convert_markups($ereviews));

$ereviews = str_replace( "\"", """, $ereviews);
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.

Last edited by Chuck S; September 6th, 2005 at 06:42 PM.
Chuck S is online now   Reply With Quote
Old September 8th, 2005, 11:09 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jun 2005
Posts: 179
The problem is that if a user enters an ampersand in a review e.g. "this & that", submit their review and then click "edit" they are presented with "this & that" in the edit box, and when they click submit again it becomes "this & that".

The problem is when they click edit it's not properly reverse parsing special characters like "& and /" etc. I think quotes are affected too.
Arnie is offline   Reply With Quote
Old September 8th, 2005, 02:04 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
In reviews.php change htmlspecialchars to un_htmlspecialchars

if ( VB35 == "on" ) $ereviews = un_htmlspecialchars($ereviews);
else $ereviews = un_htmlspecialchars(convert_markups($ereviews));
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrade v2.9 to v3.11 - & is now being shown as &amp criscokid ReviewPost Installation & Upgrades 25 June 18th, 2006 09:20 PM
Image Description: " changes to "(FIXED) bajabob Photopost Pro Bug Reports 4 November 16th, 2005 05:03 AM
Image Title: &(FIXED) NightClubber Photopost Pro Bug Reports 8 October 19th, 2005 12:49 AM
Edit Product bugs? (blank fields in product edit & strange product order) Khashyar ReviewPost Bug Reports 0 April 23rd, 2005 12:51 AM
max upload size && request acceptance for registration elad General Discussion 1 August 6th, 2004 07:30 AM


All times are GMT -5. The time now is 07:56 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0