Fenux.Net - The Life of a Geek
Posted on 11/26/2005 9:45 am in PHP
I've been fighting with PHPNuke off and on for awhile about incorporating images into my posts. I've added the img tag to the $AllowableHTML in config.php, but sometimes it will still mangle my tags. I think I've finally solved the problem.

In mainfile.php, there is a function called check_html. In this function, there is a line that says "$str = eregi_replace("]*)[[:space:]]*>", ', $str);". This comes before it checks the AllowableHTML. By commenting out that line, I seem to have solved the problem.

Post a Comment

Most Recent Comments

Creative Commons License  Subscribe with Bloglines  Get Daily Wisdom!
This work is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.
© 2000-2012 Jason Burgess