Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
A bug in quote-character conversion. Bugs
By haflinger , Section Code []
Posted on Tue Mar 12, 2002 at 12:00:00 PM PST
Scoop, when taking input, converts typed quotes into " characters. However, it appears to do it at the point of storage, rather than when outputting the data- this is quicker, but leads to a slight problem in some cases.

The bug can be seen here. Basically, the submission routines took my input, which looked like this: "Palestinian terrorist hid in ambulance..." and processed it, turning the quotes into " characters. Unfortunately, while doing so, it hit the max title length, leaving &qu at the end of the title. There are two possible solutions that I can think of:
  1. Increase the max title length, perhaps by switching to null-terminated strings (not a small task I know :)
  2. Switch the conversion routines over so they only work on display of comments.

Incidentally, just detected another bug. This story uses the & code fairly extensively; when I preview, all the & characters get replaced by ampersands in my submit area. This is Not Good. :)

< Color Customization | SalsaFix.Com >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· here.
· More on Bugs
· Also by haflinger

Story Views
  16 Scoop users have viewed this story.

Display: Sort:
A bug in quote-character conversion. | 3 comments (3 topical, 0 hidden)
Regarding HTML Entity conversion (none / 0) (#1)
by hillct on Tue Mar 12, 2002 at 08:57:17 AM PST

It seems to me that conversion of HTML entities for the purpose of editing after preview and for administrative editing, into their character set representations is a good thing. I've noticed that this translation is not consistant across scoop and that's a bad thing. It is a relitively simple problem to fix but the question becomes, which is the correct behavior, to convert entities for editing or not to convert, then again, there should be a difference between an entity code entered by a user into an article, and those translated by scoop when it writes the story record. Perhaps if entities were translated back to front, this problem could be avoided.

The other issue mentioned is about when title character count should be computed; before or after entity conversion. This is more an issue of what purpose the title length constraint serves. If it is intended as an asthetic thing, then counting before conversion into entities would make sense, however I believe there is also a database field length issue here. In order to prevent problems, the field length would have to be 5x the maximum display length of the title, since the largest HTML entity code is in itself 5 characters long.

--CTH



--
ScoopHost.com - Premier Scoop Hosting and custom development from the lead developers.


check cashing costa-mesa (none / 0) (#2)
by Pervez on Sun Apr 15, 2018 at 11:02:21 AM PST

These kinds of documents are generally surely such a spectacular besides challenging. We are the truth is satisfied in regards to the selected furnished chemical substance. I am hoping additional exceptional content shall be submitted your website. Currently comply with for the next search phrase check cashing costa-mesa A lot of give thanks a good deal making use of this specific besides assist talking about.



construction company NYC (none / 0) (#3)
by Pervez on Sun Mar 31, 2019 at 01:59:29 AM PST

Brand-new article content or simply critical reviews! That I conclude it's countless magnificent anywhere you want to this content, there must be loads of consumers prefer it all should get outcome is us all well recognized you can expect to may be a more effective I'm going to commonly support you. Right now, follow-up construction company NYC Good triumph. Ok bye.



A bug in quote-character conversion. | 3 comments (3 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search