Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 15th, 2006, 8:42 PM   #1
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
Editing of messages

There's been a change recently, when editing posts. I've noticed it as I often go back in shortly after creating a post and edit it to fix minor typos. Over the last couple of weeks, the text that is presented for editing is the HTML equivalent of the original For example [code] blocks show up in the editor as their HTML equivalents. This has a couple of implications; 1) People who don't recognise HTML will have trouble editing their message as it looks different from what the typed a few minutes back. A minor consequence is that multiple paragraphs in a post get merged into one in some circumstances. 2) It is a potential security hole for the site: by posting a message and then editing it, someone malicious could insert new code that is a bit less innocent than simply formatting their post.
grumpy is offline   Reply With Quote
Old Jul 16th, 2006, 8:25 PM   #2
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,667
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
Thanks for the information. I didn't realize it was doing this. I will look into it. Thanks
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Jul 28th, 2006, 7:01 PM   #3
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
It's still doing it.

If you want an example that causes frustrations, go through the following steps;

1) create (for yourself) a new post that places the following code in [code] blocks.
#include <iostream>
int main()
{
    std::cout << "Hello\n";
}

2) It will post fine. But then click the edit button. Do nothing, but hit the button to save the changes. You will find the code looks markedly different (as the double quotes are now displayed as markup).

I'll give two posts in sequence after this one. They will be identical, except that I went through the sequence with the second one.
grumpy is offline   Reply With Quote
Old Jul 28th, 2006, 7:02 PM   #4
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
#include <iostream>
int main()
{
    std::cout << "Hello\n";
}
grumpy is offline   Reply With Quote
Old Jul 28th, 2006, 7:03 PM   #5
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
Only difference between this post and the last is that I've hit the edit button and saved changes (and added this line to stop a complaint about duplicate posts).
#include <iostream>
int main()
{
    std::cout << &quot;Hello\n&quot;;
}
grumpy is offline   Reply With Quote
Old Jul 28th, 2006, 7:35 PM   #6
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,667
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
#include <iostream>
int main()
{
    std::cout << "Hello\n";
}
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Jul 28th, 2006, 7:37 PM   #7
kkjorsvik
Newbie
 
Join Date: Jul 2006
Posts: 1
Rep Power: 0 kkjorsvik is on a distinguished road
#include <iostream>
int main()
{
	std::cout << "Hello\n";
}
kkjorsvik is offline   Reply With Quote
Old Jul 28th, 2006, 7:42 PM   #8
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,667
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
I don't know why I can't get this to happen for me but It just doesn't seem to happen. Maybe when we upgrade to vB 3.6 once it has gone Gold it will fix the problem
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote
Old Jul 28th, 2006, 7:49 PM   #9
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
Hmmm..... maybe it's a browser problem. I use firefox.

This post done with (groan, yick) IE. I'll try the same things

#include <iostream> int main() { std::cout << "Hello\n"; }

Edit: it comes up differently, without the same problem.
grumpy is offline   Reply With Quote
Old Jul 28th, 2006, 7:55 PM   #10
grumpy
Programming Guru
 
grumpy's Avatar
 
Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,254
Rep Power: 5 grumpy will become famous soon enough
This post done also with IE.

Following is the literal text that appears in the edit pane when using firefox one my last message.

[HTML]
Hmmm..... maybe it's a browser problem. I use firefox.<br />
<br />
This post done with (groan, yick) IE. I'll try the same things<br />
<br />
<br />
<div align="left">#include &lt;iostream&gt;<br />
int main()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;std::cout &lt;&lt; &quot;Hello\n&quot;;<br />
}<br />
</div>
<br />
Edit: it comes up differently, without the same problem.

[/HTML]
grumpy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
solving warning messages, in a program kalulu C 4 Nov 25th, 2005 9:41 PM
Program for editing fstab Benoit Show Off Your Open Source Projects 3 Nov 15th, 2005 10:50 PM
Messages Awaiting Replies ChiHappens Community Announcements and Feedback 7 Sep 22nd, 2005 5:09 PM
Hex editing - How to get starting modding exe files?? wazoo Assembly 9 Sep 20th, 2005 12:51 PM
List and explanation of all dev-c++ error messages Josef_Stalin C++ 4 Jul 18th, 2005 3:30 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:47 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC