Joomla filterinput.php blacklist and stripping my code :(

  • sherma
  • Silver Member
  • Silver Member
  • User avatar
  • Posts: 127

Post 3+ Months Ago

As of joomla 1.6, you can no longer use anything more than basic html code in articles.



This portion of the filterinput.php did have other tags in the blacklist, but I removed most all of them, it helped some, but I still can't use a <script > (like google ads for example) in the article.

Code: [ Select ]
    /**
     * @var        array    A list of the default blacklisted tags.
     * @since    1.5
     */
    var $tagBlacklist = array ('meta');

    /**
     * @var        array    A list of the default blacklisted tag attributes.
     * @since    1.5
     */
    var $attrBlacklist = array ('codebase', 'dynsrc', 'lowsrc'); // also will strip ALL event handlers
  1.     /**
  2.      * @var        array    A list of the default blacklisted tags.
  3.      * @since    1.5
  4.      */
  5.     var $tagBlacklist = array ('meta');
  6.     /**
  7.      * @var        array    A list of the default blacklisted tag attributes.
  8.      * @since    1.5
  9.      */
  10.     var $attrBlacklist = array ('codebase', 'dynsrc', 'lowsrc'); // also will strip ALL event handlers


I've even removed ' script,applet,iframe ' from both the tinymce.xml, and the tinymce.php in the plugins/editors directory.

Surely someone here has encountered this with 1.6 and knows a work around / fix?
Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Posts: 854

Post 3+ Months Ago

did a quick search and found a support ticket on the joomla code site.
There was a patch issued that supposedly works.
here's the link to the support ticket:
Ticket

And here's the patch:
Patch (you'll need to login to get to it :-\)

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 108 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.