Proposal for Limiting the Length of WML Names
Moderator: Forum Moderators
Proposal for Limiting the Length of WML Names
I'm going to propose that we limit the length of WML element and attribute names to 32 characters.
The reason for this limit is because with the way WML compression works, very long element or attribute names could be used to perform DoS attacks on the server.
Are there any reasons why this shouldn't be done?
Length of attribute values would be unaffected.
David
The reason for this limit is because with the way WML compression works, very long element or attribute names could be used to perform DoS attacks on the server.
Are there any reasons why this shouldn't be done?
Length of attribute values would be unaffected.
David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming
- Viliam
- Translator
- Posts: 1341
- Joined: January 30th, 2004, 11:07 am
- Location: Bratislava, Slovakia
- Contact:
Limiting names to a reasonable length seems OK to me. However, 32 is not enough, see translation files:
"A_Choice_Must_Be_Made_objectives" - 32
"Brother_Against_Brother_objectives" - 34
"Plunging_into_the_Darkness_objectives" - 37
"The_Valley_of_Death-The_Princesss_Revenge_objectives" - 52
IMHO scenario writers should use a bit shorter id's. But as situation is now, 32 is not enough... make it 64, or perhaps 255.
"A_Choice_Must_Be_Made_objectives" - 32
"Brother_Against_Brother_objectives" - 34
"Plunging_into_the_Darkness_objectives" - 37
"The_Valley_of_Death-The_Princesss_Revenge_objectives" - 52
IMHO scenario writers should use a bit shorter id's. But as situation is now, 32 is not enough... make it 64, or perhaps 255.
Yes I know. In fact I wrote the wiki page on scenariosViliam wrote:Each scenario has a name and an id.
yes; the IDs are seen in-game only in the case of an error.Viliam wrote:I am not sure, but I think the names are used for savefile names, not id's.
Well usually the names and IDs are basically the same, so if one is changed the other will likely be changed too.Viliam wrote:However, to make the name shorter too, seems like a good idea.