Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
if ( is_numeric( $query['user'] ) ) {
$sql = 'SELECT username FROM #__users WHERE id = '. (int) $query['user'];
$database = JFactory::getDBO();
$database->setQuery( $sql, 0, 1 );
$username = $database->loadResult();
if ( $username && ! ( preg_match( '+[@:/\n\r\t\a\e\f\v\x00_]+', $username ) || is_numeric( $username ) ) ) {
$query['user'] = str_replace( '.', '_', $username ); // a dot (.) in a username is mishandled by the dot htaccess of joomla 1.5
}
}
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.