From: Janusz Dobrowolski Date: Sun, 10 Apr 2011 19:04:10 +0000 (+0200) Subject: [0000692] Tab characters should be forbidden in item code. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=7a6b67bced092d40457a0e47285d705b979b0ba8;p=textcart.git [0000692] Tab characters should be forbidden in item code. --- diff --git a/inventory/manage/items.php b/inventory/manage/items.php index 1391b82..87987f7 100644 --- a/inventory/manage/items.php +++ b/inventory/manage/items.php @@ -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'));