[Home]UserDataFilename

UseModWiki | RecentChanges | Preferences

Where the UserData file is saved.

Called by SaveUserData, GetNewUserId?, LoadUserData

example for userid 1211: user/1/1211.db

 sub UserDataFilename {
   my ($id) = @_;

   return ""  if ($id < 1);
   return $UserDir . "/" . ($id % 10) . "/$id.db";
 }


Taint mode patch

This routine throws a fatal error when taint checking is enabled. $id is read from the user, then used as part of a filename on the host system -- dangerous! For a fix, see WikiPatches/TaintMode.


UseModWiki | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited September 2, 2007 4:51 pm by MarkusLude (diff)
Search: