Fix JS code escape
This commit is contained in:
parent
549880b8eb
commit
a03444e7ed
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue