Bug #1131

str_split function missing in squidGuard

Added by Luis Soltero over 2 years ago. Updated 11 months ago.

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

Associated revisions

History

#1 Updated by Serg Dvoriancev over 2 years ago

Bug Fixed.

#2 Updated by Jim P over 2 years ago

  • Status changed from New to Feedback

Fixed per dvserg

#3 Updated by Jim P 11 months ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF