Joomla filterinput.php blacklist and stripping my code :(

  • sherma
  • Silver Member
  • Silver Member
  • User avatar
  • Joined: Jun 13, 2011
  • Posts: 127
  • Status: Offline

Post August 6th, 2011, 9:35 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 6th, 2011, 9:35 am

  • mindfullsilence
  • Professor
  • Professor
  • User avatar
  • Joined: Aug 04, 2008
  • Posts: 846
  • Status: Offline

Post August 8th, 2011, 1:26 am

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 :-\)
Use your words like arrows to shoot toward your goal.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 150 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.