News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Apostrophe in a product name prevents the product folders view from displaying

Started by PedroF, March 15, 2008, 04:19:22 AM

Previous topic - Next topic

PedroF

Hi

I have tested this on 2 test sites - one has the default data in it. It occurs in both simple and extended layours

Description:
An apostrohpe in a product name causes the foler view to fail

VirtueMart Version:
Virtuemart 1.1 RC2

Joomla/Mambo Version:
Joomla 1.5.1

Steps to replicate:
View the product folders - all is OK
Change the name of an item lke hammer to hammer's
View the product folders - cannot see any of the products and IE 7 says that a line is missing ] which is the line where hammer's is in the source

Proposed fix(es):
n/a

Bugtracker task #:
n/a

System info:
Linux grandma-lamp 2.6.15-27-386 
Apache 2.0.55
PHP 5.1.2 and also on PHP 5.2.5


Cheers
Pedro

Edited to put info in the correct format

zorro1966

Hi there,

The ' in hammer's is seen as php code and will mess things up. You could try to use the ` so it looks like hammer`s. You could also try to use the hammer's like this: hammer'''s (tree in a row).

Greetings Michel

PedroF

Thanks for the suggestion zorro1966

I have just taken the ' out from the product for my test site for the time being. It looks like a similar fix was made to another module according to the changelog, so the issue may be in a few places.

Cheers
Pedro

bulabula

What about putting the php escape (backslash) in front of it?   product\'s

PedroF

Hi

Can anyone confirm that this is a problem and not just me?

Cheers
Pedro

bulabula

Try using this for your apostrophes: '

Example:

Pedro's product

Becomes:
Pedro's product

PedroF

Hi bulabula

A similar issue was fixed in another modiule and should be fixed in this module. I haven't checked the latest builds yet to see if it still an issue in this one.

Pedro