Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Declaring callbacks when they don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoslado committed Nov 30, 2015
1 parent 8b07bab commit 503ab09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions dfTools.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,12 +666,16 @@ public static function truncateText($text, $length)

public static function stripHtml($text)
{
function cb1($matches){
return chr($matches[1]);
if (!function_exists('cb1')){
function cb1($matches){
return chr($matches[1]);
}
}

function cb2($matches){
return chr('0x'.$matches[1]);

if (!function_exists('cb2')){
function cb2($matches){
return chr('0x'.$matches[1]);
}
}
$text = html_entity_decode($text, ENT_QUOTES, "ISO-8859-1");
$text = preg_replace_callback(
Expand Down
Binary file modified dist/doofinder-p1.5-latest.zip
Binary file not shown.

0 comments on commit 503ab09

Please sign in to comment.