09.10.2010, 15:25
(
Последний раз редактировалось Rachael; 09.10.2010 в 15:58.
)
fexist(filename) is not case sensative, so of there is a user file 'Rachael.ini'
I think in the case you have described where someone logs in with your name with a different case, it will find the user file and ask for your password as normal.
Furthermore, I think if the server re-writes the user file with 'fopen(file,io_write);' it will not alter the case of the original file.
I have deduced this information after testing this on my server, and if your login system differs from mine then what I have said may not apply.
[edit] I tested this on my local test server and then on my hosted server, for some reason the results were different, so disregard what I have posted above.
pawn Код:
fexist("Rachael.ini") = true
fexist("rachael.ini") = true
fexist("RACHAEL.ini") = true
Furthermore, I think if the server re-writes the user file with 'fopen(file,io_write);' it will not alter the case of the original file.
I have deduced this information after testing this on my server, and if your login system differs from mine then what I have said may not apply.
[edit] I tested this on my local test server and then on my hosted server, for some reason the results were different, so disregard what I have posted above.