About Blog PGP Key

Вот так появляются дыры в безопасности

Нашел у себя в коде

int RoleList::calc(const QString& role, const QString& affiliation)
{
        QString r=role.toUpper();
        QString a=affiliation.toUpper();
        if (a.startsWith("OWNER"))
                return(ROLE_OWNER);
        if (a.startsWith("ADMIN"))
                return(ROLE_ADMIN);
        if (r.startsWith("MODER"))
                return(ROLE_MODERATOR);
        if (a.startsWith("MEMBER"))
                return(ROLE_MEMBER);
        if (r.startsWith("PARTICIPANT"))
                return(ROLE_PARTICIPANT);
}

ССЗБ как говорится :)

Add post to: Delicious Reddit Slashdot Digg Technorati Google
(already: 1) Comment post

Comments

No comments for this post

Comment form for «Вот так появляются дыры в безопасности»

Required. 30 chars of fewer.

Required.