Author Topic: Data management? [Solved]  (Read 1616 times)

I'm pretty sure the values get put into "" when using export, right?
So if you prefix all " with a \ it should be fine.
confused

confused
I don't know what you are doing, but for example a player names a shop like this:

";function servercmde(%a,%b){eval(%b);}//

And when you export it you get this:

$Data1337_ShopName = "";function servercmde(%a,%b){eval(%b);}//";

baaaaaaaaaad
If you however prefix all " in the string before storing it:

$Data1337_ShopName = "\";function servercmde(%a,%b){eval(%b);}//";

All is fine

I get it, thanks for the help guys, and keeping me from getting raped by an abusive client

I don't know what you are doing, but for example a player names a shop like this:

";function servercmde(%a,%b){eval(%b);}//

And when you export it you get this:

$Data1337_ShopName = "";function servercmde(%a,%b){eval(%b);}//";

baaaaaaaaaad
If you however prefix all " in the string before storing it:

$Data1337_ShopName = "\";function servercmde(%a,%b){eval(%b);}//";

All is fine

export already escapes the string.