Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wordfenc.../lib
File: wordfenceHash.php
}
[1000] Fix | Delete
private function isPreviousCoreFile($hexContentsSHAC) {
[1001] Fix | Delete
$hasPrefix = $this->_binaryListContains($this->coreHashesData, wfUtils::hex2bin($hexContentsSHAC), 32);
[1002] Fix | Delete
return $hasPrefix !== false;
[1003] Fix | Delete
}
[1004] Fix | Delete
[1005] Fix | Delete
/**
[1006] Fix | Delete
* @param $binaryList The binary list to search, sorted as a binary string.
[1007] Fix | Delete
* @param $needle The binary needle to search for.
[1008] Fix | Delete
* @param int $size The byte size of each item in the list.
[1009] Fix | Delete
* @return bool|int false if not found, otherwise the index in the list
[1010] Fix | Delete
*/
[1011] Fix | Delete
private function _binaryListContains($binaryList, $needle, $size /* bytes */) {
[1012] Fix | Delete
$p = substr($needle, 0, $size);
[1013] Fix | Delete
[1014] Fix | Delete
$count = ceil(wfWAFUtils::strlen($binaryList) / $size);
[1015] Fix | Delete
$low = 0;
[1016] Fix | Delete
$high = $count - 1;
[1017] Fix | Delete
[1018] Fix | Delete
while ($low <= $high) {
[1019] Fix | Delete
$mid = (int) (($high + $low) / 2);
[1020] Fix | Delete
$val = wfWAFUtils::substr($binaryList, $mid * $size, $size);
[1021] Fix | Delete
$cmp = strcmp($val, $p);
[1022] Fix | Delete
if ($cmp < 0) {
[1023] Fix | Delete
$low = $mid + 1;
[1024] Fix | Delete
}
[1025] Fix | Delete
else if ($cmp > 0) {
[1026] Fix | Delete
$high = $mid - 1;
[1027] Fix | Delete
}
[1028] Fix | Delete
else {
[1029] Fix | Delete
return $mid;
[1030] Fix | Delete
}
[1031] Fix | Delete
}
[1032] Fix | Delete
[1033] Fix | Delete
return false;
[1034] Fix | Delete
}
[1035] Fix | Delete
[1036] Fix | Delete
}
[1037] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function