client9 / libinjection

SQL / SQLI tokenizer parser analyzer
Other
1k stars 274 forks source link

clean up char map to handle chars > 127 #78

Closed client9 closed 10 years ago

client9 commented 10 years ago

this was hacked in a while ago:

          if (ch > 127) {

              /* 160 or 0xA0 or octal 240 is "latin1 non-breaking space"
               * but is treated as a space in mysql.
               */
              if (ch == 160) {
                  fnptr = parse_white;
              } else {
                  fnptr = parse_word;
              }
         } else {

replace to remove this logic.