Author Topic: HTML document view not showing iframe, but it does on edit  (Read 3500 times)

edoher

  • Newbie
  • *
  • Posts: 8
    • View Profile
HTML document view not showing iframe, but it does on edit
« on: June 18, 2010, 03:23:23 pm »
Hi:

I need to embed another site's content in a document, so I used an iframe, and it works fine when I add it on the form and even when, after saved, go and try to edit it, but in the view it just doesn't show. It shows images, heading text, links, but not iframe. I assume it is doing some strip_tags stuff on it, but I can't find where. Any one know how to "unlock" the display of iframe or any other tags?

edoher

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: HTML document view not showing iframe, but it does on edit
« Reply #1 on: June 18, 2010, 06:33:56 pm »
In application\controllers\FilesController.class.php, in line 2140 just change
Code: [Select]
$html_content = purify_html($file->getFileContentWithRealUrls()); for
Code: [Select]
$html_content = $file->getFileContentWithRealUrls(); .

Thanks for nothing!

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: HTML document view not showing iframe, but it does on edit
« Reply #2 on: June 22, 2010, 10:36:19 am »
Thanks for sharing.

Beware of the security risks ...

edoher

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: HTML document view not showing iframe, but it does on edit
« Reply #3 on: June 23, 2010, 04:19:57 pm »
I'm aware, but all the users I have are numb when it comes to programming. Cheers!