Author Topic: Extra back slashes \ in product not found message.  (Read 4065 times)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27432
  • Always on vacation
    • Jenkin Hill Internet
Extra back slashes \ in product not found message.
« on: October 14, 2007, 21:36:28 pm »
In some places there are stray backslashes appearing before ' - such as Customer\'s note in Customer's order information.

The problem is in english.php where the variable is shown as Cusomer\\\'s note. Is this just in my install or do the extra slashes appear in others?

Database Version: 4.1.20
PHP Version: 4.4.2
Web Server: Apache
VirtueMart 1.1: Ver. 998 13 October
Joomla! Version: Joomla! 1.0.13 Stable [ Sunglow ]
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Extra back slashes \ in product not found message.
« Reply #1 on: October 29, 2007, 00:13:49 am »
Joomla 1.0.13
VirtueMart 1.1 r1018

There are extra back slashes in product not found message.

Quote
Error: Sorry, but the Product you\'ve requested wasn\'t found!

English is not my first, second or even third language but I think the correct grammar should be

Quote
Sorry, the product you've requested was not found!

However I could be wrong.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27432
  • Always on vacation
    • Jenkin Hill Internet
Re: Extra back slashes \ in product not found message.
« Reply #2 on: October 29, 2007, 10:26:42 am »
Yes, there are extra backslashes for all variables where an apostrophe needs to be escaped in english.php

Quote
   var $_PHPSHOP_DOWNLOADS_INFO = 'Please enter the Download-ID you\\\'ve got in the e-mail and click \\\'Start Download\\\'.';
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.8 PHP 7.0.33
Testing VM .3.6.0.10075 on Joomla 3.9.8