 | |  | | | ReviewPost Bug Reports Let us know about any post installation problems you are having with ReviewPost. |
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:
"
&
<
>
|
| |
November 21st, 2005, 05:42 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
Those would be considered html characters in a way
In admin options set this to YES
Allow HTML in Product Fields?
|
| |
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.
|
| |
November 21st, 2005, 06:50 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
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.
|
| |
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.
|
| |
November 21st, 2005, 07:46 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
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.
|
| |
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.
|
| |
November 24th, 2005, 08:08 PM
|
#8 (permalink)
| | Member Verified Customer
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  .
|
| |
November 25th, 2005, 07:21 AM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
well are you running the latest |
| |
November 25th, 2005, 08:47 AM
|
#10 (permalink)
| | Member Verified Customer
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.
|
| |
November 25th, 2005, 09:22 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
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
|
| |
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?
|
| |
November 25th, 2005, 02:36 PM
|
#13 (permalink)
| | Member Verified Customer
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.
|
| |
November 25th, 2005, 02:38 PM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
They are indeed in the upgrade script mike
Jeremy no I do not have allow html on
|
| |
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 " etc?
If I go to reeftalk & leave a comment, with a " in there, is it going to display the actual " or the (bug) " ?
|
| |
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 ".
in Reviews when I do the same, it displays &quot;
This is why it is SHOWING " instead of showing "
&quot; != "
So there is probably a typo somwhere OR maybe the would-be cleanly converted " to " is getting substituted AGAIN somewhere where it shouldn't be which is creating the &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.
|
| |
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.
|
| |
November 26th, 2005, 01:16 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 68,070
|
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
|
| |
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.
|
| |
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 ".
in Reviews when I do the same, it displays &quot;
This is why it is SHOWING " instead of showing "
&quot; != "
So there is probably a typo somwhere OR maybe the would-be cleanly converted " to " is getting substituted AGAIN somewhere where it shouldn't be which is creating the &quot; since & is another one of those chars that is getting sanitized. |
That is the problem.
&quot; will DISPLAY " (the problem)
" will DISPLAY " (the expected result)
Last edited by Jeremy; November 26th, 2005 at 01:43 PM.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 12:15 PM. | |