Needs review
Project:
Smileys
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2011 at 15:29 UTC
Updated:
25 Jul 2015 at 08:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
superfedya commentedI think this 2 line must be adapted to php 5.3.
$chunk = eregi_replace("([ ,\.\?!:\(\)\r\n\<\>])". preg_quote($a) ."([ ,\.\?!:\(\)\r\n\<\>])", "\\1<img src=\"". check_url($GLOBALS['base_url'] .'/'. $smiley->image) ."\" title=\"". check_plain($alt) ."\" alt=\"". check_plain($alt) ."\" class=\"smiley-content\"/>\\2", $chunk);$chunk = eregi_replace(preg_quote($a), '<img src="'. check_url($GLOBALS['base_url'] .'/'. $smiley->image) .'" title="'. check_plain($alt) .'" alt="'. check_plain($alt) .'" />', $chunk);Comment #2
superfedya commentedAny news? This problem makes watchdog useless :(
Comment #3
mr.j commentedDisregard this one it was patched against an intermediate fix. See next comment
Comment #4
mr.j commentedThis patch works for me.