Quote Originally Posted by countrycharm View Post
I am running the latest version of Google Base 1.7.3 but Google wasn't excepting all my product, so I replaced this portion of the sanitizer code in includes/classes/google_base.php in 1.7.3A with the one from 1.7.0
This is the difference in \includes\classes\google_base.php
Here is the section from 1.7.0a

Here is the section from 1.7.3


After I replaced the portion of the sanitizer code in includes/classes/google_base.php in 1.7.3A with the one from 1.7.0 Now Google accepts all my products. I hope this help some of you out.
Hmmm, now im confused? You say that the second section is from 1.7.3? Here is that version of mine that I got from numinix site. it stated that was also version 1.7.3 but it doesnt have the same info as yours. ??

PHP Code:
    // sanitizes code for XML 
    
function google_base_xml_sanitizer($str$cdata false) {
      
$str str_replace(array("\t" "\n""\r"), ' '$str);
      
$str html_entity_decode($str);  
      
$str strip_tags($str);
      
$str htmlentities($str);
      
$str utf8_encode(str_replace(array("®""©""™"" "), array('(r)''(c)''(tm)'' '), $str));
      
$str eregi_replace("[^[:alnum:][:space:].,!()'-_/+=?ÀÂÄßÈÉÊËÎÏÔÖÙÛÜàâäèéêëîïôöùûüÿÇç«»]"""$str);
      
$out "";
      
$length strlen($str);
      for (
$i 0$i $length$i++) {
        
$current ord($str{$i});
        if (((
$current == 0x9) || ($current == 0xA) || ($current == 0xD) || (($current >= 0x20) && ($current <= 0xD7FF)) || (($current >= 0xE000) && ($current <= 0xFFFD)) || (($current >= 0x10000) && ($current <= 0x10FFFF))) && ($current 10) ) {
          
$out .= chr($current);
        } else {
          
$out .= " ";
        }
      }
      
$str trim($out);
      
$str str_replace(array("&lt;""&gt;"), array("<"">"), $str);
      if (
$cdata) {
        
$str '<![CDATA[' $str ']]>';
      } 
      return 
$str;
    } 
after that section it goes into creating the url for the product image? So, what version do i have?