× 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

iframe is unwanted filtered

More
5 years 11 months ago - 5 years 11 months ago #4730 by Dirk
Replied by Dirk on topic iframe is unwanted filtered
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 "> to a normal Joomla Content Article?
Last edit: 5 years 11 months ago by Dirk.

Please Log in to join the conversation.

More
5 years 11 months ago - 5 years 11 months ago #4736 by tlkl
Replied by tlkl on topic iframe is unwanted filtered

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 "> 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.
Last edit: 5 years 11 months ago by tlkl. Reason: Readibility

Please Log in to join the conversation.

More
5 years 11 months ago #4738 by Dirk
Replied by Dirk on topic iframe is unwanted filtered
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 to join the conversation.

More
5 years 11 months ago - 5 years 11 months ago #4740 by tlkl
Replied by tlkl on topic iframe is unwanted filtered
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;
Last edit: 5 years 11 months ago by tlkl.

Please Log in to join the conversation.

More
5 years 11 months ago - 5 years 11 months ago #4741 by tlkl
Replied by tlkl on topic iframe is unwanted filtered
Add form.php
Part of the message is hidden for the guests. Please log in or register to see it.
Last edit: 5 years 11 months ago by tlkl. Reason: failed to add it as attachment

Please Log in to join the conversation.

More
5 years 11 months ago - 5 years 11 months ago #4742 by Dirk
Replied by Dirk on topic iframe is unwanted filtered
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 ?

Attachment Screenshot-2018-5-4.png not found

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

Last edit: 5 years 11 months ago by Dirk.

Please Log in to join the conversation.

Moderators: Dirkjoest