Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Who already fixed the "htmlspecialchars()" error?


Guest

Recommended Posts

Posted

When customer checkout,

the billing address is show this error:

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/sharon/public_html/osc/includes/functions/general.php on line 42

 

 

I want to know who is fixed this problem?!

 

 

Thanks~

Posted

When the customer edit the address with ==> ; '

 

it will be appear this error.

 

 

How can we skip these symbol?!

 

like replace function in asp.

 

 

How about php?! Can it do it?!

 

thx

Posted
something along the lines of ...

 

address='".addslashes(htmlspecialchars($address))."'

Is it means edit all the code with this ?!

Posted

I already copy the original file to the folder.

 

 

When I edit the customer address book.

 

 

It must be occur this problem.

 

 

 

why?!

Posted

Well, for example if you had:

 

$thisvariable

 

... change it to something like ...

 

$thisvariable='".addslashes(htmlspecialchars($thisvariable))."'

 

 

This feature may already be built into certain areas?? Add a new product in admin and then edit and it often adds those damn slashes. ;)

Posted

Thanks~

 

 

But I may be fixed it.

 

 

I downloaded the new oscommerce file in oscommerce website.

http://www.oscommerce.com/solutions/downloads

 

In /catalog/includes/modules/address_book_details.php

 

use it replace my file.

 

Then now can be run it correctly.

 

:lol:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...