Galaxy Legion Forum http://galaxylegion.com/forum/ |
|
Punctuation issues, again (this time, with the &) http://galaxylegion.com/forum/viewtopic.php?f=5&t=24079 |
Page 1 of 1 |
Author: | Asheron [ Thu Apr 26, 2012 9:59 pm ] |
Post subject: | Punctuation issues, again (this time, with the &) |
The ampersand cuts off the remainder of the sentence on the comm. I would hope that one day, all of these known punctuation problems are solved. Is there any reason why they're so difficult to tackle? I also wish we'd get refunded our Energy for sending messages failed in this manner. (If there is an accounting / log of messages ever sent with punctuations causing failures in said messages, that would be a good way to determine how many units of energy need to be refunded to each player that has ever sent a failed message.) |
Author: | FerrusManus [ Thu Apr 26, 2012 10:00 pm ] |
Post subject: | Re: Punctuation issues, again (this time, with the &) |
They're removed on purpose, so that people can't use it to mess with the database. |
Author: | ICBLF [ Thu Apr 26, 2012 10:28 pm ] |
Post subject: | Re: Punctuation issues, again (this time, with the &) |
FerrusManus wrote: They're removed on purpose, so that people can't use it to mess with the database. There are better ways to solve that problem then blocking specific characters. The standard "escape on input"/"unescape on display" pattern comes to mind. |
Author: | Chris24markey [ Thu Apr 26, 2012 10:36 pm ] |
Post subject: | Re: Punctuation issues, again (this time, with the &) |
Must be a good day, If all one can complain about is grama!!!!! |
Author: | FerrusManus [ Thu Apr 26, 2012 10:45 pm ] |
Post subject: | Re: Punctuation issues, again (this time, with the &) |
ICBLF wrote: FerrusManus wrote: They're removed on purpose, so that people can't use it to mess with the database. There are better ways to solve that problem then blocking specific characters. The standard "escape on input"/"unescape on display" pattern comes to mind. Yeah, I only know the very basics about that stuff, so I wasn't sure if there might be a good reason not to do things like that. |
Author: | Drekentai [ Sat Apr 28, 2012 12:25 am ] |
Post subject: | Re: Punctuation issues, again (this time, with the &) |
My suggestion to Dan is a mini conversion system. Convert inputted undesired characters to your own version. Then when reading the data to output it just use preg_replace() to replace your own version into that character for display. That way the data gets converted before even going into the database and gets converted back for display. |
Author: | Asheron [ Sun Apr 29, 2012 1:40 am ] |
Post subject: | Re: Punctuation issues, again (this time, with the &) |
Drekentai wrote: My suggestion to Dan is a mini conversion system. Convert inputted undesired characters to your own version. Then when reading the data to output it just use preg_replace() to replace your own version into that character for display. That way the data gets converted before even going into the database and gets converted back for display. +Pluses here! |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |