Bug #1131
str_split function missing in squidGuard
| Status: | Closed | Start date: | 12/24/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
| Affected version: | Affected Architecture: |
Description
squidGuard gives errors under pfSense 1.2.3 because php4 does not provide the str_split function required by squidGuard. This issue is discussed in detail here
http://forum.pfsense.org/index.php/topic,31171.0.html
the following fix is suggested
add the following to the bottom of squidGuard.inc
if(!function_exists('str_split')) {
function str_split($string, $split_length = 1) {
$array = explode("\r\n", chunk_split($string, $split_length));
array_pop($array);
return $array;
}
}
It would be nice if the package maintainer would do this to prevent problems for pfsense 1.2.3 users when they update the package.
Thanks,
--luis
History
#1
Updated by Serg Dvoriancev over 2 years ago
Bug Fixed.