mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-10-01 01:26:10 -04:00
_sanitizeClob touches no instance variables
This commit is contained in:
parent
604c931875
commit
75d28ef423
@ -839,10 +839,11 @@ class Database extends AbstractData
|
|||||||
* From: https://stackoverflow.com/questions/36200534/pdo-oci-into-a-clob-field
|
* From: https://stackoverflow.com/questions/36200534/pdo-oci-into-a-clob-field
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
|
* @static
|
||||||
* @param int|string|resource $value
|
* @param int|string|resource $value
|
||||||
* @return int|string
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
public function _sanitizeClob($value)
|
public static function _sanitizeClob($value)
|
||||||
{
|
{
|
||||||
if (is_resource($value)) {
|
if (is_resource($value)) {
|
||||||
$value = stream_get_contents($value);
|
$value = stream_get_contents($value);
|
||||||
|
Loading…
Reference in New Issue
Block a user