version 1.223, 2017/06/09 15:02:38 |
version 1.224, 2017/11/07 08:51:38 |
|
|
* http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
*/ |
*/ |
|
|
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.222 2017/06/08 11:56:19 igor Exp $ */ |
/* $Platon: phpMyEdit/phpMyEdit.class.php,v 1.223 2017/06/09 15:02:38 igor Exp $ */ |
|
|
/* This is a generic table editing program. The table and fields to be |
/* This is a generic table editing program. The table and fields to be |
edited are defined in the calling program. |
edited are defined in the calling program. |
Line 1872 function '.$this->js['prefix'].'filter_h |
|
Line 1872 function '.$this->js['prefix'].'filter_h |
|
} |
} |
} |
} |
if ($this->ext_hsc === false) { // internal |
if ($this->ext_hsc === false) { // internal |
if (PHP_MAJOR_VERSION == 5 |
// PHP version 5.4 |
&& PHP_MINOR_VERSION == 4) |
if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION == 4) { |
{ |
return htmlspecialchars($string, |
return htmlspecialchars($string, ENT_COMPAT | ENT_HTML401, $this->deduct_htmlspecialchars_encoding($this->encoding)); |
ENT_COMPAT | ENT_HTML401, |
} |
$this->deduct_htmlspecialchars_encoding($this->encoding)); |
if (PHP_MAJOR_VERSION == 5 |
} |
&& PHP_MINOR_VERSION == 6) |
// PHP version 5.6 and higher |
{ |
if ((PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 6) |
return htmlspecialchars($string, ENT_QUOTES | ENT_HTML5 | ENT_DISALLOWED | ENT_SUBSTITUTE, $this->deduct_htmlspecialchars_encoding($this->encoding)); |
|| PHP_MAJOR_VERSION >= 7) { |
|
return htmlspecialchars($string, |
|
ENT_QUOTES | ENT_HTML5 | ENT_DISALLOWED | ENT_SUBSTITUTE, |
|
$this->deduct_htmlspecialchars_encoding($this->encoding)); |
} |
} |
} |
} |
// default PHP |
// default PHP |