[0000692] Tab characters should be forbidden in item code.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Sun, 10 Apr 2011 19:04:10 +0000 (21:04 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Sun, 10 Apr 2011 19:04:10 +0000 (21:04 +0200)
inventory/manage/items.php

index 1391b825da10ae35f305a6165b31454b3535f813..87987f7ee6928cc7241af4346b1bcc7d13232f5d 100644 (file)
@@ -137,7 +137,7 @@ if (isset($_POST['addupdate']))
        }
        elseif (strstr($_POST['NewStockID'], " ") || strstr($_POST['NewStockID'],"'") || 
                strstr($_POST['NewStockID'], "+") || strstr($_POST['NewStockID'], "\"") || 
-               strstr($_POST['NewStockID'], "&")) 
+               strstr($_POST['NewStockID'], "&") || strstr($_POST['NewStockID'], "\t")
        {
                $input_error = 1;
                display_error( _('The item code cannot contain any of the following characters -  & + OR a space OR quotes'));