From: <dai...@us...> - 2011-03-18 05:48:29
|
Revision: 4513 http://web-erp.svn.sourceforge.net/web-erp/?rev=4513&view=rev Author: daintree Date: 2011-03-18 05:48:23 +0000 (Fri, 18 Mar 2011) Log Message: ----------- Trap codes with spaces Modified Paths: -------------- trunk/Stocks.php Modified: trunk/Stocks.php =================================================================== --- trunk/Stocks.php 2011-03-18 05:45:21 UTC (rev 4512) +++ trunk/Stocks.php 2011-03-18 05:48:23 UTC (rev 4513) @@ -100,7 +100,7 @@ $Errors[$i] = 'StockID'; $i++; } - if (ContainsIllegalCharacters($StockID) OR strstr($StockID,' ')) { + if (ContainsIllegalCharacters($StockID) OR strpos($StockID,' ')) { $InputError = 1; prnMsg(_('The stock item code cannot contain any of the following characters') . " - ' & + \" \\ " . _('or a space'),'error'); $Errors[$i] = 'StockID'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |