Peak Oil News

 

  Login or Register
 
Menu
 News
 Search
 Topics
 Stories Archive
 Submit News
 Discussions
 Code of Conduct
 Forums
 Forums Search
 Last 24 Hours
 PO 24hrs
 Peak Blog
 Resources
 About Us
 Downloads
 Web Links
 PeakWiki
 PeakPortal
 Focus Search
 Peak TV
 Peak Oil Boston
 Members
 Your Account
 Members List
 Ignore List
 JOIN!
 Private Messages
 
google
 
PeakSpeak
NICKNAME

Download TeamSpeak
What is PeakSpeak?
Peak Oil on IRC
 
Photo Album
Submit Photo
Peakoil.com is You!


member photos
 
Light Sweet Crude Oil
 
Member Quotes
I want my mommy!

Buggy

Suggest Quote

 
aspo08
 
ICM
Cisco & Net App Training
 
Peak Oil News: Forums

Peakoil.com :: View topic - [web][/web] bbcode -- iFrame mod
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[web][/web] bbcode -- iFrame mod

 
Post new topic   Reply to topic   Printer-friendly version    Peakoil.com Forum Index -> Technical Support
View previous topic :: View next topic  
Author Message
MyOtherID
Heavy Crude
Heavy Crude


Joined: Mar 02, 2006
Posts: 362
Location: Vegas, America's cloaca

PostPosted: Fri Apr 14, 2006 5:47 am    Post subject: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

I suggest this bbcode be removed from the site. If some webpages are embedded using this iframe bbcode, the thread cannot be accessed without automatically forwarding to the frame-breaking embedded page.

To remove this retroactively and yet not break a lot of existing threads, write a little SQL that scans for the strings [web] and [/web] and replace them with the [url][/url] tags.

Caution: use phpmyadmin to first check that the bbcode is stored in simple format, i.e. [web]http://blah.com[/web] and not [web:3w4refw]http://blah.com[/web:sfergte4t]. If stored in the latter format, you will need additional SQL to remove the extra digits as well. I think. It may also work to simply do the replacement of "[web" with "[url" and "[/web" with "[/url" leaving the extra digits intact. Experiment by directly editing one post through phpmyadmin to see if this works.
Back to top
View user's profile Send private message
Shannymara
Master
Master


Joined: Oct 04, 2004
Posts: 5434
Location: Oklahoma

PostPosted: Fri Apr 14, 2006 1:53 pm    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

I agree with the suggestion for the reason stated.

Also, while I think the embedded pages are kind of cool, I would strongly prefer to choose whether to look at a link rather than have it embedded in a thread here. Just my own preference, submitted for your consideration.
_________________
"Every junkie's like a setting sun..." - Neil Young
Back to top
View user's profile Send private message Send e-mail AIM Address
turmoil
Moderator
Moderator


Joined: Aug 13, 2004
Posts: 1185
Location: Richmond, VA, Pale Blue Dot

PostPosted: Fri Apr 14, 2006 6:59 pm    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

How about this

...if you want to post a webpage, and you aren't sure if it redirects the browser or not, do a preview, and check.

If it redirects, use url tags. If not, you are ok...

No sense in removing a cool feature, imo...

To fix one that already redirects (like I did), all a moderator (or the person who posted it) has to do is hit the stop button before it redirects, click edit on the post, change the web tags to url tags, and submit.

...a 2-second fix for a problem that occurs once in a while.

Problem solved?
_________________
"If you are a real seeker after truth, it's necessary that at least once in your life you doubt all things as far as possible"-Rene Descartes

"When you have excluded the impossible, whatever remains however improbable must be the truth"-Sherlock Holmes
Back to top
View user's profile Send private message Send e-mail AIM Address
MyOtherID
Heavy Crude
Heavy Crude


Joined: Mar 02, 2006
Posts: 362
Location: Vegas, America's cloaca

PostPosted: Fri Apr 14, 2006 7:36 pm    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

turmoil wrote:
...if you want to post a webpage, and you aren't sure if it redirects the browser or not, do a preview, and check.
....
Problem solved?


Won't work. Nobody will do it.
Back to top
View user's profile Send private message
turmoil
Moderator
Moderator


Joined: Aug 13, 2004
Posts: 1185
Location: Richmond, VA, Pale Blue Dot

PostPosted: Fri Apr 14, 2006 7:47 pm    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

why do people stop at stop lights? because if they don't they will most likely die or get badly injured. not to mention the insurance premium hike...

same basic logic applies here...

why would people preview and/or not post a redirecting page?

for at least three reasons:

1. you would not be able to get back to the page to see if anyone responded.
2. no one would be able to read your post.
3. after previewing an iframe that redirects, it is impossible to post.

just my $0.02...
_________________
"If you are a real seeker after truth, it's necessary that at least once in your life you doubt all things as far as possible"-Rene Descartes

"When you have excluded the impossible, whatever remains however improbable must be the truth"-Sherlock Holmes
Back to top
View user's profile Send private message Send e-mail AIM Address
MyOtherID
Heavy Crude
Heavy Crude


Joined: Mar 02, 2006
Posts: 362
Location: Vegas, America's cloaca

PostPosted: Fri Apr 14, 2006 10:31 pm    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

People don't know how to do what you've suggested. Even I had to struggle to do it, with the page still redirecting after I'd hit stop a few times.

But hey, live in your dream world if it makes you happy. Evil or Very Mad
Back to top
View user's profile Send private message
turmoil
Moderator
Moderator


Joined: Aug 13, 2004
Posts: 1185
Location: Richmond, VA, Pale Blue Dot

PostPosted: Fri Apr 14, 2006 11:07 pm    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

Timing is truely everything isn't it Cool

...you've got to be quick...it's a page-eat-page world out there...

If you mean that it's redirecting when you preview, then if you are using firefox, just click back and replace web with url. Internet Explorer seems to remove the text in the field. doh! yet another reason to use firefox...

If you mean that it's still redirecting after you have posted the redirecting page, then you have already run the red light...and now you are in a body cast... eusa_naughty
_________________
"If you are a real seeker after truth, it's necessary that at least once in your life you doubt all things as far as possible"-Rene Descartes

"When you have excluded the impossible, whatever remains however improbable must be the truth"-Sherlock Holmes
Back to top
View user's profile Send private message Send e-mail AIM Address
MyOtherID
Heavy Crude
Heavy Crude


Joined: Mar 02, 2006
Posts: 362
Location: Vegas, America's cloaca

PostPosted: Fri Apr 14, 2006 11:57 pm    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

I do use Firefox.

Your solution is not a solution, since many do not preview their posts, and the problem will not be solved like that.
Back to top
View user's profile Send private message
turmoil
Moderator
Moderator


Joined: Aug 13, 2004
Posts: 1185
Location: Richmond, VA, Pale Blue Dot

PostPosted: Sat Apr 15, 2006 12:25 am    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

Most people don't preview because they are usually just posting text/links rather than web pages. For the reasons above (which could be added to), anyone who wants to post a web page would preview first. The solution works if people try to solve the problem, rather than ignoring it.

Your sql script would work too, but then no one could post web pages. It would be like cutting down a tree to remove shade, instead of moving into the sun. If you move, you have a tree for shade if you want it later.

Of course there are better solutions than the one I'm proposing, like parsing the code of the page within the ifame to see if it causes this problem. If it does, replace with url. If not, leave web. But I'd have to research that to see if it's even possible.
_________________
"If you are a real seeker after truth, it's necessary that at least once in your life you doubt all things as far as possible"-Rene Descartes

"When you have excluded the impossible, whatever remains however improbable must be the truth"-Sherlock Holmes


Last edited by turmoil on Sat Apr 15, 2006 8:45 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail AIM Address
MyOtherID
Heavy Crude
Heavy Crude


Joined: Mar 02, 2006
Posts: 362
Location: Vegas, America's cloaca

PostPosted: Sat Apr 15, 2006 12:39 am    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

Getting rid of the iframe feature is not a big loss. I don't think you should use overblown analogies to describe it. But if you could put in a parser to force frame-breaking web pages into the [url] form, that would be the best solution.

I don't know if you realize it, but the iframe abilities of [web] also poses a security problem:
http://www.phpbb2.de/ftopic32489-45.html
Back to top
View user's profile Send private message
MyOtherID
Heavy Crude
Heavy Crude


Joined: Mar 02, 2006
Posts: 362
Location: Vegas, America's cloaca

PostPosted: Sat Apr 15, 2006 12:51 am    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

More on the vulnerability:
http://www.phpbb.com/phpBB/viewtopic.php?t=350048
http://www.phpbb2.de/viewtopic.php?t=32489
Back to top
View user's profile Send private message
turmoil
Moderator
Moderator


Joined: Aug 13, 2004
Posts: 1185
Location: Richmond, VA, Pale Blue Dot

PostPosted: Sat Apr 15, 2006 8:21 am    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

No one ever likes my analogies...but, at least you liked the parsing solution... occasion14

As far as the vulnerbility is concerned, there's at least two good reasons (yes, I'm listing again) why no one on peakoil.com has become a victim of it:

1. anyone smart enough to find peakoil.com and dumb enough to write malicious code and link to it in an iframe needs to find another hobby.

2. jail is no fun
_________________
"If you are a real seeker after truth, it's necessary that at least once in your life you doubt all things as far as possible"-Rene Descartes

"When you have excluded the impossible, whatever remains however improbable must be the truth"-Sherlock Holmes


Last edited by turmoil on Sat Apr 15, 2006 1:59 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail AIM Address
Shannymara
Master
Master


Joined: Oct 04, 2004
Posts: 5434
Location: Oklahoma

PostPosted: Sat Apr 15, 2006 9:56 am    Post subject: Re: [web][/web] bbcode -- iFrame mod Add User to Ignore List Reply with quote

Hey, if you guys are going to discuss specific vulnerabilities, maybe you should do it by PM.... Just a humble suggestion.
_________________
"Every junkie's like a setting sun..." - Neil Young
Back to top
View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic   Printer-friendly version    Peakoil.com Forum Index -> Technical Support All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum

Atom News FeedRSS 1.0 News FeedRSS 2.0 News FeedRSS Forums Feed