Why doesn't the percent sign (%) show in the chat?
#9

Quote:
Originally Posted by D0erfler
Посмотреть сообщение
and replacing % with %% wouldn't help(still %%s).
Did you try this? The reason '%%' is there is so '%' appears in a formatted string. '%' is merely an escape character like '\' is an escape character for Pawn strings which you escape with '\\'.

I would like to see '%' allowed back in chat again. It's easy to make counter measures against format attacks by filtering the string before parsing it into format, any half-decent scripter would know how to do this. I'm sure someone would post a generic function to do this for newbies anyhow.

http://en.wikipedia.org/wiki/Format_string_attack
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)