Galaxy Legion Forum
http://galaxylegion.com/forum/

Let punctuation marks show up on the ship comms.
http://galaxylegion.com/forum/viewtopic.php?f=6&t=44642
Page 1 of 1

Author:  Asheron [ Wed May 16, 2018 7:08 am ]
Post subject:  Let punctuation marks show up on the ship comms.

Apostrophes and quotes won't show up for some reason. Some other punctuation marks won't show up either, I think.

Why don't they? Will this please get fixed?

Does Dan still maintain and improve the game or is it on some kind of autonomous mode with no dev at the helm? I have a bad gut feeling that this is so. - Asheron

Author:  Thaumanovic [ Wed May 16, 2018 8:04 am ]
Post subject:  Re: Let punctuation marks show up on the ship comms.

It's most likely done to prevent SQL injection and cross-site scripting (XSS). There are ways of doing it where you can retain non-alphanumeric characters, but these are sometimes quite complex, and seeing as GL is "home-brew" it was probably much easier for the developers at the time to just strip everything out.

Author:  senatorhung [ Wed May 16, 2018 8:12 am ]
Post subject:  Re: Let punctuation marks show up on the ship comms.

Guide wrote:
It's most likely done to prevent SQL injection and cross-site scripting (XSS). There are ways of doing it where you can retain non-alphanumeric characters, but these are sometimes quite complex, and seeing as GL is "home-brew" it was probably much easier for the developers at the time to just strip everything out.

Guide explained quite well.

in place of quotes .. use a period. looks kind of weird but it won.t require any more coding workarounds.

Author:  Mythra [ Thu May 17, 2018 2:58 pm ]
Post subject:  Re: Let punctuation marks show up on the ship comms.

Guide wrote:
It's most likely done to prevent SQL injection and cross-site scripting (XSS). There are ways of doing it where you can retain non-alphanumeric characters, but these are sometimes quite complex, and seeing as GL is "home-brew" it was probably much easier for the developers at the time to just strip everything out.


It's not even that, it has a more simple reason. It's to prevent HTML tags

Author:  Thaumanovic [ Thu May 17, 2018 4:47 pm ]
Post subject:  Re: Let punctuation marks show up on the ship comms.

Mythra wrote:
Guide wrote:
It's most likely done to prevent SQL injection and cross-site scripting (XSS). There are ways of doing it where you can retain non-alphanumeric characters, but these are sometimes quite complex, and seeing as GL is "home-brew" it was probably much easier for the developers at the time to just strip everything out.


It's not even that, it has a more simple reason. It's to prevent HTML tags

I feel like that is covered by XSS, but yes, that too.

Author:  senatorhung [ Thu May 17, 2018 8:27 pm ]
Post subject:  Re: Let punctuation marks show up on the ship comms.

Mythra wrote:
Guide wrote:
It's most likely done to prevent SQL injection and cross-site scripting (XSS). There are ways of doing it where you can retain non-alphanumeric characters, but these are sometimes quite complex, and seeing as GL is "home-brew" it was probably much easier for the developers at the time to just strip everything out.


It's not even that, it has a more simple reason. It's to prevent HTML tags

HTML tags are angle brackets, not quotes, but the principle is the same .. block browser exploits

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/