Menu

#7 PalmKey rejects special characters in seed

open
nobody
Problems (2)
5
2003-08-02
2003-08-02
Pandu Rao
No

PalmKey rejects special characters (such as '-') in
the seed.

e.g., One of the server I log into has a '-'(s-foo
say) in its host name. So the seed looks like x-23768.
This seed is not valid per PalmKey but is valid per
ther server.

PalmKey must allow all characters which make for a
legal hostname and by extension legitimate seeds.

Overall, a useful application. Keep up the good work!

Discussion

  • Pandu Rao

    Pandu Rao - 2003-08-05

    Logged In: YES
    user_id=132739

    This patch fixes the problem:

    *** palmkey.c.mod Mon Aug 4 22:26:15 2003
    --- palmkey.c Fri Jan 12 02:30:53 2001
    ***************
    *** 469,475 ****
    /* Cycle through the field and check for invalid
    characters,
    displaying an error message if there are any. */
    while(*p) {
    ! if (!((*p >= 'a' && *p <= 'z') || (*p >= 'A' &&
    *p <= 'Z') || (*p >= '0' && *p <= '9') || (*p ==
    '-'))) {
    NonFatalError(InputAlert, InvalidSeed);
    return;
    }
    --- 469,475 ----
    /* Cycle through the field and check for invalid
    characters,
    displaying an error message if there are any. */
    while(*p) {
    ! if (!((*p >= 'a' && *p <= 'z') || (*p >= 'A' &&
    *p <= 'Z') || (*p >= '0' && *p <= '9'))) {
    NonFatalError(InputAlert, InvalidSeed);
    return;
    }

     
  • Pandu Rao

    Pandu Rao - 2003-08-05

    Patch to fix rejection of valid seed

     

Log in to post a comment.

MongoDB Logo MongoDB