Welcome, Guest
Username: Password: Remember me
If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html

TOPIC: iframe is unwanted filtered

iframe is unwanted filtered 1 year 3 weeks ago #4730

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1025
  • Karma: 21
  • Thank you received: 184
I have honestly no idea why this happens on your installation!

More questions!

Where exactly do you try to insert the iframe code?
frontend, backend, jooDB-Database template, jooDB-Database entry -field?

Are you admin, manager or superuser?

What kind of SQLField is the field where you try to insert the iframe?
Varchar, Text, Blob?

Have you ever tested to insert <iframe src=" www.w3schools.com "></iframe> to a normal Joomla Content Article?

Please Log in or Create an account to join the conversation.

Last Edit: by Dirk.

iframe is unwanted filtered 1 year 3 weeks ago #4736

  • tlkl
  • tlkl's Avatar Topic Author
  • Offline
  • Posts: 13
  • Thank you received: 0

dirk wrote: Where exactly do you try to insert the iframe code?

I'm not sure that I understand the difference. I went to my url:website/administrator. There I chose Component - JooDatabase - Edit Data.

dirk wrote: Are you admin, manager or superuser?

I'm logged in as superuser.

dirk wrote: What kind of SQLField is the field where you try to insert the iframe?
Varchar, Text, Blob?

I've tried it with Varchar and Text. Both gave problems.

dirk wrote: Have you ever tested to insert <iframe src=" www.w3schools.com "></iframe> to a normal Joomla Content Article?

Yes, this is no problem. I've also done this using JCE. That was also working.

Thank you for your time.

Please Log in or Create an account to join the conversation.

Last Edit: by tlkl. Reason: Readibility

iframe is unwanted filtered 1 year 3 weeks ago #4738

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1025
  • Karma: 21
  • Thank you received: 184
Varchar does not work with "html" code!

text should work because the filter is raw!
Could you please send me /administrator/components/com_joodb/helpers/form.php

Inside the function saveData there should be something like:
switch ($typearr[0]) {
case 'text' :
case 'tinytestring\', JRExt' :
case 'mediumtext' :
case 'longtext' :
	$item->{$fname} = $app->input->post->get($fne,null,'RAW');
	if (empty($item->{$fname})) $item->{$fname}= NULL;
	break;
case 'int' :

Please Log in or Create an account to join the conversation.

iframe is unwanted filtered 1 year 2 weeks ago #4740

  • tlkl
  • tlkl's Avatar Topic Author
  • Offline
  • Posts: 13
  • Thank you received: 0
In form.php in the function savedata I can see:
switch ($typearr[0]) {
case 'text' :
case 'tinytestring\', JRExt' :
case 'mediumtext' :
case 'longtext' :
	$item->{$fname} = $app->input->post->get($fne,null,'RAW');
	// $item->{$fname} = nl2br($item->{$fname});
	if (empty($item->{$fname})) $item->{$fname}= NULL;
	break;

Please Log in or Create an account to join the conversation.

Last Edit: by tlkl.

iframe is unwanted filtered 1 year 2 weeks ago #4741

  • tlkl
  • tlkl's Avatar Topic Author
  • Offline
  • Posts: 13
  • Thank you received: 0
Add form.php
Part of the message is hidden for the guests. Please log in or register to see it.

Please Log in or Create an account to join the conversation.

Last Edit: by tlkl. Reason: failed to add it as attachment

iframe is unwanted filtered 1 year 2 weeks ago #4742

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1025
  • Karma: 21
  • Thank you received: 184
The Line with // is commented out.

To explain what the function does. If the Field is type TEXT, mediumtext, tinytext, longtext it gets the post variable without any filtering!
RAW does not filter the INPUT at all!
docs.joomla.org/Retrieving_request_data_using_JInput

Is there any filter for the user posting the Form if you check
System -> Global Configuration -> Text Filters ?

This message has an attachment image.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

Last Edit: by Dirk.
Moderators: Dirkjoest