Cannot embed local HTML file

Bugs » #2


This section on the Community is no longer supported, in favour of Wikidot's Official Feedback Site .

It is retained here for archiving purposes.

Posted by jkubacki jkubacki on 09 Apr 2008 11:14, last edited on 09 May 2010 05:33

This bug has been fixed

iframe embed

Description

Embeded local HTML page is displayed as HTML source.

Fixed!

This Bug has been through a number of fixes :-). However it should now be completely resolved.
To put HTML files on your wiki page you first need to

Upload html or htm file to your page.

iframe it on that page.
example:
i have uploaded a file to this page, then iframed it

[[iframe http://community.wikidot.com/local--files/bugs:2/test-table.htm width="100%" height="500" scrolling="yes"]]

[フレーム]


gerdami gerdami . Please visit his/her userPage.

helmuti_pdorf does not match any existing user name. Please visit his/her userPage.

Phil Chett Phil Chett . Please visit his/her userPage.

Contact

Rate this Bug

Rate the urgency of this bug. If you think it is more urgent and important than it's current rating suggests, rate it up.

rating: +3
page 1 of 21
jkubacki jkubacki 09 Apr 2008 11:21

Could be web browser issue, but the question on forum hasn't been aswered for almost 2 months…

by jkubacki jkubacki , 09 Apr 2008 11:21
Re:
Helmut_pdorf Helmut_pdorf 09 Apr 2008 11:43

http://community.wikidot.com/forum/t-51141/local-javascript#post-137607


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 09 Apr 2008 11:43
Fixed/disabled
Gabrys Gabrys 02 May 2008 18:18

As we don't want to serve any user-submitted HTML files, I have recently disabled serving anything in user upload directories as text/html.

IE6 rendering non- text/html files as as HTML is a security bug in IE, not ours, so we don't do anything about this.

If you wonder how serving user-submitted HTML files by Wikidot can be dangerous, it is because user include malicious JavaScript, that being run from the same domain as the wiki page would be ran at full privileges and potentially do bad things (like deleting all wikis of the currently logged user).


Piotr Gabryjeluk
visit my blog

by Gabrys Gabrys , 02 May 2008 18:18
Make it working the right way
Gabrys Gabrys 02 May 2008 21:27

If you're interested in how we are going to host HTML files the right way, look at the following page:

http://groups.google.com/group/wikidot/browse_thread/thread/b0db300e0d02095a?hl=en


Piotr Gabryjeluk
visit my blog

by Gabrys Gabrys , 02 May 2008 21:27
Re: Make it working the right way
Craig Macomber Craig Macomber 02 May 2008 21:42

If you're interested in how we are going to host HTML files the right way, look at the following page:

Maybe that should be a how to here on the community? Why would it go somewhere else? Lets put it where people will look for it.

Edit: I didn't see that it does not work yet. When it does though, we can make it a how to. For now, couldn't you (or do you) just let people host the files on a different wiki than the one they are iframing from? That should work and be safe until a different approach is implemented.

Last edited on 02 May 2008 22:04 by Craig Macomber
by Craig Macomber Craig Macomber , 02 May 2008 21:42
Re: Make it working the right way
Gabrys Gabrys 03 May 2008 08:57

Different wiki on Wikidot is unsafe the same way as the same wiki.

You could make a page on a.wikidot.com/local-files/proxy.html which iframes a file b.wikidot.com/local-files/hack.html

Include some hackish JavaScript on the second, and then iframe the a.wikidot.com/local—files/proxy.html file from the wiki b.

The only way is to not serve ANY user submitted files as text/html or serve it from some other domain.

So I would recommend users to use other that Wikidot HTML upload service to achieve iframing HTML files from Wikidot sites. At least till we implement this.


Piotr Gabryjeluk
visit my blog

Last edited on 03 May 2008 09:05 by Gabrys
by Gabrys Gabrys , 03 May 2008 08:57
Re: Iframe HTML and ... the Changelog, please !
gerdami gerdami 04 May 2008 12:23

Changelog is still dated 16.01.2008 with no trace this "FIX".
Please fix also the ChangeLog!

by gerdami gerdami , 04 May 2008 12:23
Not sure I understand all this....
Stephen Kay Stephen Kay 03 May 2008 08:39

(Are you saying that the "workaround" of renaming files to .scrap has been disabled? I tested the "Hello World" thing a few days ago and it seemed to work.)

Anyway, today I "tricked" my wiki into running .php code that was included as a .css file inside an .html file that I iframed into a page.

I'd like to direct you to my wiki:

Karma-Lab wiki

I'm thinking it's starting to look pretty bitchin', but there are some formatting problems with different browsers. I've been searching for a solution to that, other than the sometimes ugly hacks people do to css files.

Let me explain: I am running a php fix on my site (not my wiki site, my main site) that uses php inside a css file, to determine browser type, and then to dynamically generate some fixes for the .css file to compensate for differences in browser display. In other words, I have my main css file with everything in it, and then this supplementary css file is included after it, which only generates a few things to tweak the appearance that is mainly governed by the main css file.

Note: credit for the basic idea goes to http://www.stylegala.com/articles/no_more_css_hacks.htm.

So I wanted to run this same kind of thing on my wiki. After spending nearly a whole day today, I got it to work! You can see it here on this sandbox page, which contains the details:

http://karma-lab.wikidot.com/misc:test-iframe-php

Now, I am planning to rely on this working to fix a few things, in addition to doing some other things, so I want to be sure that this is not "prohibited activity" and is not going to be disabled. I'm not a php expert, I don't know if this kind of thing can be used for malicious behavior.

Please tell me this is OK - I want to implement a number of things based on this sort of php inclusion. Thanks!

Last edited on 03 May 2008 20:32 by Stephen Kay
by Stephen Kay Stephen Kay , 03 May 2008 08:39
Re: Not sure I understand all this....
Helmut_pdorf Helmut_pdorf 03 May 2008 08:52

I am not sure how thgis is working now in Firefox.

"Standard" java apllets are NOT working in Fireforx now. In Internet Explorer it is working because of a bug in IE…

I made a test of your link in FF and it looks good.

I do not know if this will be changed in the future…

I will ask Gabrys on the edv-list:

http://groups.google.com/group/wikidot/browse_thread/thread/b0db300e0d02095a?hl=en

COuld be so easy top answer … this is an iframed URL and not embedded ?


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 03 May 2008 08:52
Re: Not sure I understand all this....
Gabrys Gabrys 03 May 2008 09:04

The answer to your question is easy. It all work because you use YOUR server outside Wikidot to run PHP files.

The Wikidot servers don't serve any user-submitted files as text/html or parse them with PHP.

The first (serving some files as text/html) would allow to run malicious JavaScript codes.
The second (parsing php files) would allow to do even more evil, because this would allow to do almost anything with the Wikidot service.

However serving HTML files as text/html IS safe IF we serve it from other domain. Even if user have some malicious JavaScript it is not allowed by browsers to touch anything on Wikidot, because the domains differs.

Hope this helps.


Piotr Gabryjeluk
visit my blog

by Gabrys Gabrys , 03 May 2008 09:04
Rename this page DESTROYED, not fixed.
gerdami gerdami 03 May 2008 15:37

Gabrys,
You have destroyed a functionality, without notice.

Imagine an online Bank,
Dear customer, you will not be allowed to transfer any single dollar because we have improved our security policy. Your login and password will not work for 2 months. Be patient. Be prepared to pay in real bucks again just for two months.
Happy banking !

Thank you very much.

Last edited on 03 May 2008 15:47 by gerdami
by gerdami gerdami , 03 May 2008 15:37
Re: Not sure I understand all this....
Stephen Kay Stephen Kay 03 May 2008 19:51

Thank you! Glad to know I can use this technique.

by Stephen Kay Stephen Kay , 03 May 2008 19:51
New way to include HTML files on Wikidot!
Gabrys Gabrys 10 May 2008 19:50

Hi

as we have seen many users relying on our security bug (which was ability to upload a HTML file with the extension .html renamed to something else), we've decided to provide such a functionality the right way.

If you want to have this possibility you need to slightly change the way you invoke the [iframe] tag.

Say, you have an iframe with the URL http://some-wiki.wikidot.com/local--files/some-page/some-file.html

You just need to change the domain name part and let it render: http://some-wiki.wdupload.wikidotsyndication.com/local--files/some-page/some-file.html

This file is safe for us to serve as text/html, and we do it.

Actually now ALL the files you want to be served as html NEED to have the .html suffix.

The feature is still beta, but should be quite stable. We will also manage to create some automagical redirects from the previous-style-links to the new one if a page is .html ended.


Piotr Gabryjeluk
visit my blog

Last edited on 10 May 2008 19:52 by Gabrys
by Gabrys Gabrys , 10 May 2008 19:50
Re: New way to include HTML files on Wikidot!
Gabrys Gabrys 12 May 2008 09:27

Hey.

Now this is REALLY fixed!

This means, you just upload a file with .html extension to Wikidot, and it JUST WORK (all the magic with other domain name is hidden behind).

Sorry for the inconvenience for this week of two of having this particular feature disabled, but this WAS a security bug.

Now, enjoy your HTML files hosted on Wikidot :)


Piotr Gabryjeluk
visit my blog

Last edited on 12 May 2008 09:31 by Gabrys
by Gabrys Gabrys , 12 May 2008 09:27
Re: New way to include HTML files on Wikidot!
Helmut_pdorf Helmut_pdorf 12 May 2008 09:33

Thanks Gabrys!


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 12 May 2008 09:33
Re: New way to include HTML files on Wikidot!
jkubacki jkubacki 13 May 2008 00:32

Good job! Thanks!

by jkubacki jkubacki , 13 May 2008 00:32
Re: New way to include HTML files on Wikidot!
gerdami gerdami 17 May 2008 13:32

Good job! Thanks!

by gerdami gerdami , 17 May 2008 13:32
Wikidot renaming HTML?
Flyingvet Flyingvet 16 Jul 2008 16:48

I have been trying to upload some html files to a site but they get re-tagged as "UTF-8 Unicode C program text". How can I keep the html tag?

by Flyingvet Flyingvet , 16 Jul 2008 16:48
(account deleted) 26 Dec 2008 13:37

is it possible as below?

<html><head><metahttp-equiv="Content-Language"content="en-us"><metaname="GENERATOR"content="Microsoft FrontPage 5.0"><metaname="ProgId"content="FrontPage.Editor.Document"><metahttp-equiv="Content-Type"content="text/html; charset=windows-1252"><title>New Page 1</title></head><body><p>xxx</p></body></html>
by (account deleted), 26 Dec 2008 13:37
Inserting frame
webvyasa webvyasa 26 Dec 2008 13:46

1)I gone trough FAQs .but didn't find an option to add iframe by using iframe tool .Ex.I want to add an html code.
2)Is the tool for inserting frames or not here?Ex: If i want to a frame of google transliterator to my site .

by webvyasa webvyasa , 26 Dec 2008 13:46
renaming html - Inserting iframe
Helmut_pdorf Helmut_pdorf 26 Dec 2008 16:35

same problems in usage - therefore my answer here - please read all answers !:

Have you red the howto:
http://community.wikidot.com/howto:use-html-scripting ? or
http://community.wikidot.com/blog:html-within-wikidot-type-2 ?

1. @ Flyingvet

I have been trying to upload some html files to a site but they get re-tagged as "UTF-8 Unicode C program text". How can I keep the html tag?

You cannot "upload" a html file! But you can copy the source into an [[code type="html"]] code block!
and the page "holding this code block" can be referenced in an [[iframe ...]] block on any other page ( or the same page) .

2. @ ltalawar does not match any existing user name

Yes , thsi is a typical html code block for an iframe , BUT: what you try is senseless, because the iframed html is not working for the "holding page of the code block"

In general - a wikidot page opening an iframe window is only showing the window with it's "extra" content - which can be a complete foreign content or a html code of the same page - but has noting to to ( and no connection!) to the holding page.
You cannot store meta tags for your page in such iframed code blocks…
if you want to use meta tags you need the pro account..

3. @ webvyasa

I have no idea if you can iframe a goole page ( why not) translating your own site - which is showing google page translating our site - which is showing google page - and so on… — THIS is not a problem, because the iframed content has NOTHING to do with your site!


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 26 Dec 2008 16:35
Re: renaming html - Inserting iframe
webvyasa webvyasa 27 Dec 2008 01:27

"I have no idea if you can iframe a goole page ( why not) translating your own site - which is showing google page translating our site - which is showing google page - and so on... — THIS is not a problem, because the iframed content has NOTHING to do with your site!"

I am not asking for the google translator.I want to just place a google.com/transliterator in a frame at header or footer or any where .So that the users can type in it and copy and paste the content .

by webvyasa webvyasa , 27 Dec 2008 01:27
Re: renaming html - Inserting iframe
Helmut_pdorf Helmut_pdorf 27 Dec 2008 08:42

Yes, of course - "every html page with a specified URL" is possible to iframe it on a wikidot page - you open only a window as a placeholder for a foreign html page and the usage inside this window is independent from the wikidot page surrounding it.

Hope this makes it clear ?

But you should NOT USE iframe on the top - bar - there is a very smal place for it or you have to change and customize your CSS-theme.

Any questions open?


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 27 Dec 2008 08:42
Not fixed? File does not exist?
Stephen Kay Stephen Kay 04 Mar 2009 17:45

The example at the top does not show any embedded html, it shows "file does not exist".

by Stephen Kay Stephen Kay , 04 Mar 2009 17:45
page 1 of 21
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /