LENpolygon / Build-Order-Tool-AoE4-

Build Order Tool (for Age of Empires IV)
30 stars 15 forks source link

Issues with symbols like > #13

Closed LENpolygon closed 2 years ago

LENpolygon commented 2 years ago

Suggestion by o11899nine on Reddit:

Everytime I "Save & Copy" and then go back to it later, everything is messed up. All my symbols, like ">" have turned into "gt;" or something. Also, everything is then suddenly placed in the first column (which is normally reserved for the playtime, which I don't use).

LENpolygon commented 2 years ago

Either fix it or explain somewhere that these symbols can't be used due to looking too much like HTML.

LENpolygon commented 2 years ago

Updated the Sanitize and convert script to allow & symbols; which in turn allows symbols such as > and <.

Did some basic XSS testing and saw no flaws, so pushed live:

https://age4builder.com/index.html?c=DS&s=D4MgNgLg3AzgxgJwJYAcIgObQIZgKYIQAUAJgPZwCuAtngHYQB0cZZA1kngJTjQD08ZGkzQA3gDYA7AF9gAAjnAApAGY4g1BFV5cBYuSq0GzVh26q4AxJqUSAjNJV5gwABYQIKAFx8+AdwDGCDwYCCQ6DBNqPmDQxmwYFAB+FGwMPCQSAF4AJhBsahQoMIh8LIAVELCIpRyABnKkUudgURyADnbpADdsBDkADzksuQMaeiZ0iABRfCMIACEATwBJEiJAHAI8amwkMEBcAi4oUYpx4z9kYKIBxl6wSm4XUQBWFWleKAAjMhIluTI6GAyNhsrpCERABgEMDItAgrnCGEAmAQ8LBQKCgApFfKFNFQABEABIAMQAASJ7UoABZnu0AJyuACOrUpKjq0lElLsDg5Kkp0hQyAYcjxH3c1DAInxAvCEGForskoAMthYrLvuw5Ag8N1OH4PnxXArUXiAFDSoUkFXYT4JPCMMAqqoAJW1urNgtlIsgUANEHFkrxGJx6JIMBB2Bebw+GmEqJIVQQZCWAHU8J8YE08EQjvqY+hUUGsZioNiiqBvSQkN1JfrK9XUTyuh9m97m6i29AOyX2+3vXm5BAlig8Fl9sEBhA+AArbC9PP7SW9fqqrKIxiMPh4AaY-CMFCuZIsdicAD6log2FXAGoQnBsMPSKd5iZj9woCbc9ZY9BQD3O3-u3-IDAPRFtO1bCDwKgktvXcTwfBiKoESiPh1TYRgxTAJJ4wAM2wShICyaMv3zHB8HBMZnyPMweG9KwhFI9EgA

image

Some additional verification by a pro would be nice.