Fix JS code escape

This commit is contained in:
Mike Jolley 2012-10-23 18:21:11 +01:00
parent 549880b8eb
commit a03444e7ed
1 changed files with 1 additions and 1 deletions

View File

@ -1772,7 +1772,7 @@ class Woocommerce {
// Sanitize // Sanitize
$this->_inline_js = wp_check_invalid_utf8( $this->_inline_js ); $this->_inline_js = wp_check_invalid_utf8( $this->_inline_js );
$this->_inline_js = preg_replace( '/&#(x)?0*(?(1)27|39);?/i', "'", stripslashes( $this->_inline_js ) ); $this->_inline_js = preg_replace( '/&#(x)?0*(?(1)27|39);?/i', "'", $this->_inline_js );
$this->_inline_js = str_replace( "\r", '', $this->_inline_js ); $this->_inline_js = str_replace( "\r", '', $this->_inline_js );
// Output // Output