From 7a6b67bced092d40457a0e47285d705b979b0ba8 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 10 Apr 2011 21:04:10 +0200 Subject: [PATCH] [0000692] Tab characters should be forbidden in item code. --- inventory/manage/items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); -- 2.30.2