41
Sicurezza / Re:Utente spammer - Noooooooooooo!!!!!!!!!
« il: 17 Mar 2011, 17:44:58 »
173.242.122.111 è un ip che non ha RDNS, quindi è probabilmente di fantasia.
Questa sezione ti permette di visualizzare tutti i post inviati da questo utente. N.B: puoi vedere solo i post relativi alle aree dove hai l'accesso.
public static function check($path, $ds = DIRECTORY_SEPARATOR)
{
if (strpos($path, '..') !== false) {
JError::raiseError(20, 'JPath::check Use of relative paths not permitted'); // don't translate
jexit();
}
$path = JPath::clean($path);
if (strpos($path, JPath::clean(JPATH_ROOT)) !== 0) {
JError::raiseError(20, 'JPath::check Snooping out of bounds @ '.$path); // don't translate
jexit();
}
return $path;
}
public static function clean($path, $ds = DIRECTORY_SEPARATOR)
{
$path = trim($path);
if (empty($path)) {
$path = JPATH_ROOT; <-- LA PATCH DICE DI APPLICARLA QUI
} else {
// Remove double slashes and backslahses and convert all slashes and backslashes to DS
$path = preg_replace('#[/\\\\]+#', $ds, $path);
}
return $path;
}
![]() |
|