Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

1076
 
1319
 
1319
 
database.php
_> 11 <?php
  22 /*
<> 3 -  $Id: database.php 1076 2006-10-25 15:37:50Z hpdl $
   3+  $Id: database.php 1319 2007-03-05 20:43:07Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
354354     }
  355355 
  356356     function bindValueMixed($place_holder, $value, $type = 'string') {
<> 357 -      static $sql_parse_string;
  358 -
359357       switch ($type) {
  360358         case 'int':
  361359           $value = intval($value);
     
 !
367365           break;
  368366         case 'string':
  369367         default:
<> 370 -          $sql_parse_string = $this->db_class->sql_parse_string;
  371 -
  372 -          $value = trim($value);
  373 -
  374 -          if ($this->db_class->sql_parse_string_with_connection_handler === true) {
  375 -            $value = "'" . $sql_parse_string($value, $this->db_class->link) . "'";
  376 -          } else {
  377 -            $value = "'" . $sql_parse_string($value) . "'";
  378 -          }
   368+          $value = "'" . $this->db_class->parseString(trim($value)) . "'";
<_ 379369       }
  380370 
  381371       $this->bindReplace($place_holder, $value);