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-Tag: 2.3-final~706 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=56c2f35f35782234da8753981d3b6bb9d71c624d;p=fa-stable.git [0000692] Tab characters should be forbidden in item code. --- diff --git a/inventory/manage/items.php b/inventory/manage/items.php index 1391b825..87987f7e 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'));