tags:

views:

115

answers:

3
+1  A: 

Probably. can you show us the safe_input function?

Cam
+3  A: 

You never set $output to the full image tag. Just the beginning of it. That's my wild guess with the lack of information we have so far.

$output = '<img src="'.safe_input ($src).'" ';

vs

$output = '<img src="'.safe_input ($src).'" />';
Joe Philllips
I added the rest of the function and the tag is eventually closed (if the function works). I don't think that would cause a 500 error anyway.
puddingfox
A: 

Ok I figured it out. The function mb_check_encoding is undefined. Thanks for the help guys.

puddingfox
Mark this as the answer then, not some random answer.
Joe Philllips