Menu

#1 Buchstaben werden akzeptiert

open-later
nobody
9
2002-07-21
2001-01-27
No

Die Prüfroutine akzeptiert auch Buchstaben in dem eingegebenen String, wenn die Prüfsummenberechnung richtig ist.

Discussion

  • Nils Diekmann

    Nils Diekmann - 2001-01-27
    • status: open --> open-later
     
  • Nobody/Anonymous

    Logged In: NO

    function check($text) {

    for ($i = 0; $i < strlen($text); $i++) {

    if (!ereg("[0-9Dd]", $text[$i])) {
    return 1;
    }
    }
    }

    Damit sollte dieser bug behoben sein ;)

    Ursprungsfunktion
    function check($text) {

    for ($i = 0; $i < strlen($text); $i++) {

    if (!ereg("[A-Za-z0-9]", $text[$i])) {
    return 1;
    }
    }
    }

    MfG

    Sebastian S.

     
  • Nils Diekmann

    Nils Diekmann - 2002-07-21
    • priority: 5 --> 9
     
  • Nils Diekmann

    Nils Diekmann - 2002-07-21

    Logged In: YES
    user_id=137143

    This bug is fixed in the new IR version. Only numbers will be accepted
    now.

     

Log in to post a comment.

MongoDB Logo MongoDB