Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Who already fixed the "htmlspecialchars()" error?


Guest

Recommended Posts

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~

Link to comment
Share on other sites

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

Link to comment
Share on other sites

something along the lines of ...

 

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

Is it means edit all the code with this ?!

Link to comment
Share on other sites

I already copy the original file to the folder.

 

 

When I edit the customer address book.

 

 

It must be occur this problem.

 

 

 

why?!

Link to comment
Share on other sites

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. ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...