appdb: makeSafe improvement

Vitaly Lipatov lav at
Tue Jun 20 11:11:46 CDT 2006

After last security fixes in AppDB there is introduced makeSafe function with 
one parameter.

Typical using of makeSafe:
$aClean['sub'] = makeSafe($_REQUEST['sub']);

When $_REQUEST does not contain 'sub', we get "Notice: Undefined index:" if 
mod_php in strict mode (do not permit undefined variables).

What about use makeSafe in the form
$aClean['sub'] = makeSafe($_REQUEST,'sub');
Then we can use isset inside makeSafe for additional checking.

Vitaly Lipatov, ALT Linux Team
Russia, Saint-Petersburg,

More information about the wine-devel mailing list