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 Rate Thread Display Modes
Old November 21st, 2005, 05:20 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Description field does not like double quotes & more...(FIXED)

When uploading/editing the description field does not like:

"
&
<
>
Jeremy is offline   Reply With Quote
Old November 21st, 2005, 05:42 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
Those would be considered html characters in a way

In admin options set this to YES

Allow HTML in Product Fields?
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 21st, 2005, 06:38 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Quote:
Originally Posted by Chuck S
Those would be considered html characters in a way

In admin options set this to YES

Allow HTML in Product Fields?
LOL. No way.

Why don't you just escape them as you do in the other fields like the title??

Look.... there are valid reasons for using some of those characters without having to enable HTML, obviously you guys know the potential consequences of allowing HTML, you suggest against it on the option itself.


What if something has a measurement as part of its specification in the description? ie 8"x9"


Please fix this the proper way as you did for the classifieds.

Last edited by Jeremy; November 21st, 2005 at 06:45 PM.
Jeremy is offline   Reply With Quote
Old November 21st, 2005, 06:50 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
Yes and No.

Look at our function it escapes those specific function and converts them but in doing so you are allowing HTML RIGHT.

If you allow the conversion of < > & and " then all html links display hense the function and you see the strip tags where we dont allow any bad things. but I still warn people.

I can tell you to edit the code and add un_htmlspecialchars to that line to convert those characters but thats what the switch I told you to set to YES does

Code:
Content visible to verified customers only.
see this code in showproduct.php

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 21st, 2005, 07:11 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
The option says:

"Allow HTML in Product Fields?
Please note it is a security issue to allow html in product fields but if you do want to take the risk set to YES!"

We're going to be allowing untrusted (but registered) users to "upload products"

So you're saying that it's no longer a (real) security issue to enable HTML in product descriptions?

If not, then what happens if someone types 11" x 17" in the review comments below? Do I have to enable html there as well?

I understand what you are trying to do, but when you OUTPUT your sanitized
Code:
Content visible to verified customers only.
it is actually DISPLAYING
Code:
Content visible to verified customers only.
instead of " -- with HTML off.



Why is it safe in Vbulletin with HTML OFF to type:

`~!@#$%^&*()_+-={}|[]\:"';/.<>

But not in these products in all untrusted user submitted fields?

With HTML off, for the title I can type " and it displays " as it should.
With HTML off, for the title if I type <B>BOLD</B> , it does not execute the HTML, as it shouldn't.

So why can't you use the same routine used for the title for the rest of the user submitted areas?

Last edited by Jeremy; November 21st, 2005 at 07:15 PM.
Jeremy is offline   Reply With Quote
Old November 21st, 2005, 07:46 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
I am just saying the character's you have all specified allow html to be entered.

You posted these < > so I gave you the proper answer to enable html if you want to display those

Now if you want to turn html off and just want to worry about & and " try this

Code:
Content visible to verified customers only.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 21st, 2005, 08:02 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
... err sec I'll test this

Last edited by Jeremy; November 21st, 2005 at 08:11 PM.
Jeremy is offline   Reply With Quote
Old November 24th, 2005, 08:08 PM   #8 (permalink)
Member
Verified Customer
 
indiamike's Avatar
 
Join Date: Nov 2001
Location: New Jersey
Posts: 127
Quote:
Originally Posted by Chuck S
Those would be considered html characters in a way

In admin options set this to YES

Allow HTML in Product Fields?
I have read on say this on the forums about some switch in the admin screen however in my admin screen I don't show this option or at least have never seen it .
indiamike is offline   Reply With Quote
Old November 25th, 2005, 07:21 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
well are you running the latest
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 25th, 2005, 08:47 AM   #10 (permalink)
Member
Verified Customer
 
indiamike's Avatar
 
Join Date: Nov 2001
Location: New Jersey
Posts: 127
I am running 3.11 that I intalled on 10/19. Was something added to the later build with this? I didn't see anything in the announcements.

From your description it should be in the Edit Settings under All Options correct?

I don't see it and haven't seen this on any reviewpost release.
indiamike is offline   Reply With Quote
Old November 25th, 2005, 09:22 AM   #11 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
This was added in Reviewpost 3.0

They are added right in the 2.9-3.0 upgrade process and should be under showproduct options specifically
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 25th, 2005, 01:07 PM   #12 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Chuck,

Do you have ALLOW-HTML enabled in descriptions and reviews on Reeftalk.com?
Jeremy is offline   Reply With Quote
Old November 25th, 2005, 02:36 PM   #13 (permalink)
Member
Verified Customer
 
indiamike's Avatar
 
Join Date: Nov 2001
Location: New Jersey
Posts: 127
Quote:
Originally Posted by Chuck S
This was added in Reviewpost 3.0

They are added right in the 2.9-3.0 upgrade process and should be under showproduct options specifically
Much apologies Jeremy for butting into your thread. Sorry


Just to follow up Chuck, nope I have never had those fields installed. I have hand installed them though through phpmyadmin. I started reviewpost with the 3.1 release I think. I have looked into a few of the install and upgrade scripts and for fields 237 and 238 I could only find REPLACE INTO query for both of them. I haven't checked all of the upgrades scripts but the ones I did check none had a INSERT INTO query for those field numbers. If you have a chance check on a fresh install if those fields are getting inserted.

Could have just been a mix up somewhere along the line though.

Mike

...again sorry Jeremy but I also have the same problems with the quotes and stuff and am unsure why this happens in reviewpost and not photopost.
indiamike is offline   Reply With Quote
Old November 25th, 2005, 02:38 PM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
They are indeed in the upgrade script mike

Jeremy no I do not have allow html on
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 25th, 2005, 05:43 PM   #15 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Quote:
Originally Posted by Chuck S
They are indeed in the upgrade script mike

Jeremy no I do not have allow html on

Then why should the users of photopost have to in order to have double quotes display as " rather than &quot; etc?

If I go to reeftalk & leave a comment, with a " in there, is it going to display the actual " or the (bug) &quot; ?
Jeremy is offline   Reply With Quote
Old November 25th, 2005, 05:49 PM   #16 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Quote:
Originally Posted by indiamike
...again sorry Jeremy but I also have the same problems with the quotes and stuff and am unsure why this happens in reviewpost and not photopost.
There's no reason to appologize.

You are having the same problem because it is a bug in the current distribution.


You know.... I think I know the problem.

::me digs through code::


Ok Chuck....here's the problem:

in Classifieds when I _view source_ of a page containing a double quote, in the source it displays as &quot;.

in Reviews when I do the same, it displays &amp;quot;

This is why it is SHOWING &quot; instead of showing "

&amp;quot; != &quot;

So there is probably a typo somwhere OR maybe the would-be cleanly converted " to &quot; is getting substituted AGAIN somewhere where it shouldn't be which is creating the &amp;quot; since & is another one of those chars that is getting sanitized.


See the problem now?

Got a fix for everyone?

Also please see the other related thread - when "allow html" is disabled then the carriage returns are stripped from desc (making one big line).


OTher than that, the whole to BBcode or not to BBcode is something you guys should definitely consider addressing as an additional enable/disable option in the future.

Last edited by Jeremy; November 25th, 2005 at 11:56 PM.
Jeremy is offline   Reply With Quote
Old November 26th, 2005, 01:07 PM   #17 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Quote:
Originally Posted by Chuck S
Jeremy no I do not have allow html on

Chuck are you going to be able to look into this today?

We would like to get this finished and be able to launch our site ASAP.

All this bug fixing is really setting us back time wise here.
Jeremy is offline   Reply With Quote
Old November 26th, 2005, 01:16 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,647
Jeremy here is the difference though and it essentially does the same thing I stated by turning on html

Basically convert_markups is messing with this

IN showproduct.php

Code:
Content visible to verified customers only.
this is what classifieds has

Code:
Content visible to verified customers only.
So you can make the change if you wish
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 26th, 2005, 01:38 PM   #19 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Quote:
Originally Posted by Chuck S
Jeremy here is the difference though and it essentially does the same thing I stated by turning on html

Basically convert_markups is messing with this

IN showproduct.php

Code:
Content visible to verified customers only.
this is what classifieds has

Code:
Content visible to verified customers only.
So you can make the change if you wish


Are titles,keywords, etc included in $desc? Or is that just for the description portion?


Did you see what I said about it possibly getting ran through twice?

Do you understand what I'm saying is happening?

There is a bug. Turning on HTML is not the fix.
Jeremy is offline   Reply With Quote
Old November 26th, 2005, 01:40 PM   #20 (permalink)
Member
Verified Customer
 
Join Date: Nov 2005
Posts: 142
Quote:
Originally Posted by Jeremy
Ok Chuck....here's the problem:

in Classifieds when I _view source_ of a page containing a double quote (in the reivew details...title, desc, etc), in the source it displays as &quot;.

in Reviews when I do the same, it displays &amp;quot;

This is why it is SHOWING &quot; instead of showing "

&amp;quot; != &quot;

So there is probably a typo somwhere OR maybe the would-be cleanly converted " to &quot; is getting substituted AGAIN somewhere where it shouldn't be which is creating the &amp;quot; since & is another one of those chars that is getting sanitized.


That is the problem.


&amp;quot; will DISPLAY &quot; (the problem)

&quot; will DISPLAY " (the expected result)

Last edited by Jeremy; November 26th, 2005 at 01:43 PM.
Jeremy is offline   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
quotes in image title(FIXED) bajabob Photopost Pro Bug Reports 3 October 25th, 2005 04:37 PM
HTML in Category Field and Description Field(NOT A BUG) Steve_C Photopost Pro Bug Reports 8 August 18th, 2005 12:18 PM
Automatic addslashes when creating a category description(FIXED) Gliderstyle Classifieds Bug Reports 8 August 4th, 2005 08:59 AM
HTML within description field? Rich Z Before You Buy 0 July 1st, 2004 05:38 PM
1.8: Quotes and Double Quotes in Description rsuplido Classifieds Bug Reports 3 July 1st, 2004 09:36 AM


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

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