Personal Log

Locked
raisdead
Forum Newbie
Posts: 22
Joined: Wed Jun 30, 2010 5:34 am
ID: 0

Personal Log

Hello,

I would like to see some enhancements to the personal Log. As a web developer/Programmer myself I understand the difficulties with havering "user data" such as a personal log. I think that the links are a step in the right direction however I would like to see more.

<pre>
For starters (during the transition) I would love to be able to use the <pre> and </pre> to preserve the format of things such as manually spaced tables. This would help to "keep things in alignment" and easily organize content.

<table>
This would be very nice to have. I am not going to explain what a table is because I am sure Wikipedia and w3cschools have a very nice article on it. There are some problems with this. If people use the tables improperly and do not close their tags properly the entire page layout can be "distorted." This can be fix with a regular expression, something like this (forgive me if its not perfect I didn't test it adequately)
<table>(<tr><td>.*</td></tr>)*</table>
(Enable . to match line terminators as well):
This works great if they have one table, however if they embed tables in tables it may be complicated, but not impossible. I would select something like this algorithm.
While there is a valid table
1. Find the last occurrence of a valid table
2. Assign variable equal to the valid table.
3. Replace the valid table with a variable variable


Any other sugestions?
BenjaminMS
Tollan
Posts: 2769
Joined: Sun Mar 05, 2006 6:20 am
Alliance: ~Leaf Village~
Race: Balancer
ID: 1907529
Alternate name(s): TUHD (Bioware forums)
Location: Stuck between real life and the other end of a Stargate

Re: Personal Log

I *thought* it already was allowed, but not sure. If it isn't, not a bad plan though
Image
Currently ingame known as BenMS

Goblin: "I like your boots."
Sorcerer: "That's because you don't have any. The emotion is called envy."
Spoiler
/smile at the green grass,
smile at the sun,
smile at the roses,
before they're gone/


BenjaminMS - 'A thief of roses'
[TL] Renegadze zegt:
yeah definately makes more sense you hitting
and I have no DMU as you keep robbing it
MERC 1 zegt:
shuld not leave it out
any way you cant prove nothing
[TL] Michael/BenjaminMS zegt:
meh Rene, just find a few 0-def farms with 300+ tril DMU out...
MERC 1 zegt:
cool you two take it then i will hit you
User avatar
Juliette
Verified
The Queen
Posts: 31802
Joined: Sun Feb 06, 2005 6:57 pm
Race: Royalty
ID: 4323
Alternate name(s): Cersei Lannister
Location: Ultima Thule

Re: Personal Log

BenjaminMS wrote:I *thought* it already was allowed, but not sure. If it isn't, not a bad plan though
Some are.. but things like "insert", "form" etcetera are automatically changed.
Image
User avatar
CABAL
Forum Expert
Posts: 1310
Joined: Wed Apr 30, 2008 1:44 am
Alliance: Aquila Ignis
Race: Death Watch
ID: 0
Location: Holy Terra

Re: Personal Log

Bad. It'll require too much work to block bad tags, and allow good ones.

One little mistake, and the game will be more vulnerable to XSS.

Imagine buying an account. You pay for the account, and get what you pay for. Scammed? Yes. Despite changing the email, one visit to the personal log, and the seller will be able to get back into his account.

For those that don't know what XSS is; google is your friend.
Image
Image

MS-1 -> T-26 -> T-46 -> T-28 -> KV -> KV-3 -> IS -> IS-3 -> IS-4 -> IS-7
raisdead
Forum Newbie
Posts: 22
Joined: Wed Jun 30, 2010 5:34 am
ID: 0

Re: Personal Log

I know about xss. Why not have a white list? Disallow everything thing that is not white.

Right now I believe that only links are allowed. I mean even <b> is not allowed. I know that there are free implementations of BB code out there. Why not use them?
Locked

Return to “Suggestions Archive”