Author Topic: Apostrophe in a product name prevents the product folders view from displaying  (Read 4388 times)

PedroF

  • Beginner
  • *
  • Posts: 5
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

  • Beginner
  • *
  • Posts: 5
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

  • Beginner
  • *
  • Posts: 5
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

  • Jr. Member
  • **
  • Posts: 58
What about putting the php escape (backslash) in front of it?   product\'s

PedroF

  • Beginner
  • *
  • Posts: 5
Hi

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

Cheers
Pedro

bulabula

  • Jr. Member
  • **
  • Posts: 58
Try using this for your apostrophes: '

Example:

Pedro's product

Becomes:
Pedro's product

PedroF

  • Beginner
  • *
  • Posts: 5
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