[Weberp-svn] SF.net SVN: weberp:[6830] trunk
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-07-21 16:22:18
|
Revision: 6830 http://weberp.svn.sourceforge.net/weberp/?rev=6830&view=rev Author: tim_schofield Date: 2011-07-21 16:22:09 +0000 (Thu, 21 Jul 2011) Log Message: ----------- Replace all occurencies of strstr() with mb_strstr() Modified Paths: -------------- trunk/CounterSales.php trunk/Currencies.php trunk/CustLoginSetup.php trunk/CustomerBranches.php trunk/SelectCreditItems.php trunk/SelectOrderItems.php trunk/StockSerialItemResearch.php trunk/Stocks.php trunk/SuppLoginSetup.php trunk/SystemParameters.php trunk/UpgradeDatabase.php trunk/WWW_Users.php trunk/WorkCentres.php trunk/Z_ImportStocks.php trunk/Z_MakeNewCompany.php trunk/Z_Upgrade_3.04-3.05.php trunk/Z_Upgrade_3.05-3.06.php trunk/Z_Upgrade_3.07-3.08.php trunk/Z_Upgrade_3.08-3.09.php trunk/Z_Upgrade_3.09-3.10.php trunk/Z_Upgrade_3.10-3.11.php trunk/Z_Upgrade_3.11-4.00.php trunk/api/api_debtortransactions.php trunk/api/api_salesorders.php trunk/api/api_stock.php trunk/api/api_suppliers.php trunk/api/api_workorders.php trunk/build/tests/PurchasingTest.php trunk/build/tests/includes/SelectModule.php trunk/includes/MiscFunctions.php trunk/install/save.php Property Changed: ---------------- trunk/build/tests/PurchasingTest.php Modified: trunk/CounterSales.php =================================================================== --- trunk/CounterSales.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/CounterSales.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -33,7 +33,7 @@ if (isset($_POST['OrderItems'])){ foreach ($_POST as $key => $value) { - if (strstr($key,'StockID')) { + if (mb_strstr($key,'StockID')) { $Index=substr($key,7); $StockID=$value; $Quantity=$_POST['Quantity'.$Index]; Modified: trunk/Currencies.php =================================================================== --- trunk/Currencies.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Currencies.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -84,7 +84,7 @@ $InputError = 1; prnMsg(_('The functional currency cannot be modified or deleted'),'error'); } - if (strstr($_POST['Abbreviation'],"'") OR strstr($_POST['Abbreviation'],'+') OR strstr($_POST['Abbreviation'],"\"") OR strstr($_POST['Abbreviation'],'&') OR strstr($_POST['Abbreviation'],' ') OR strstr($_POST['Abbreviation'],"\\") OR strstr($_POST['Abbreviation'],'.') OR strstr($_POST['Abbreviation'],'"')) { + if (mb_strstr($_POST['Abbreviation'],"'") OR mb_strstr($_POST['Abbreviation'],'+') OR mb_strstr($_POST['Abbreviation'],"\"") OR mb_strstr($_POST['Abbreviation'],'&') OR mb_strstr($_POST['Abbreviation'],' ') OR mb_strstr($_POST['Abbreviation'],"\\") OR mb_strstr($_POST['Abbreviation'],'.') OR mb_strstr($_POST['Abbreviation'],'"')) { $InputError = 1; prnMsg( _('The currency code cannot contain any of the following characters') . " . - ' & + \" " . _('or a space'),'error'); $Errors[$i] = 'Abbreviation'; Modified: trunk/CustLoginSetup.php =================================================================== --- trunk/CustLoginSetup.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/CustLoginSetup.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -76,7 +76,7 @@ $InputError = 1; prnMsg(_('The password entered must be at least 5 characters long'),'error'); } - } elseif (strstr($_POST['Password'],$_POST['UserID'])!= False){ + } elseif (mb_strstr($_POST['Password'],$_POST['UserID'])!= False){ $InputError = 1; prnMsg(_('The password cannot contain the user id'),'error'); } elseif ((mb_strlen($_POST['Cust'])>0) AND (mb_strlen($_POST['BranchCode'])==0)) { Modified: trunk/CustomerBranches.php =================================================================== --- trunk/CustomerBranches.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/CustomerBranches.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -50,7 +50,7 @@ $_POST['BranchCode'] = mb_strtoupper($_POST['BranchCode']); - if (ContainsIllegalCharacters($_POST['BranchCode']) OR strstr($_POST['BranchCode'],' ')) { + if (ContainsIllegalCharacters($_POST['BranchCode']) OR mb_strstr($_POST['BranchCode'],' ')) { $InputError = 1; prnMsg(_('The Branch code cannot contain a space or any of the illegal characters'),'error'); $Errors[$i] = 'BranchCode'; Modified: trunk/SelectCreditItems.php =================================================================== --- trunk/SelectCreditItems.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/SelectCreditItems.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -35,7 +35,7 @@ if (isset($_POST['AddToCredit'])){ foreach ($_POST as $key => $value) { - if (strstr($key,'StockID')) { + if (mb_strstr($key,'StockID')) { $Index=mb_substr($key, 7); $StockID=$value; if ($_POST['Quantity'.$Index]!=0) { Modified: trunk/SelectOrderItems.php =================================================================== --- trunk/SelectOrderItems.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/SelectOrderItems.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -24,7 +24,7 @@ if (isset($_POST['order_items'])){ foreach ($_POST as $key => $value) { - if (strstr($key,'StockID')) { + if (mb_strstr($key,'StockID')) { $Index=mb_substr($key, 7); $StockID=$value; $NewItem_array[$StockID] = $_POST['Quantity'.$Index]; Modified: trunk/StockSerialItemResearch.php =================================================================== --- trunk/StockSerialItemResearch.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/StockSerialItemResearch.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -35,8 +35,8 @@ if ($SN!='') { //the point here is to allow a semi fuzzy search, but still keep someone from killing the db server - if (strstr($SN,'%')){ - while(strstr($SN,'%%')) { + if (mb_strstr($SN,'%')){ + while(mb_strstr($SN,'%%')) { $SN = str_replace('%%','%',$SN); } if (mb_strlen($SN) < 11){ Modified: trunk/Stocks.php =================================================================== --- trunk/Stocks.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Stocks.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -103,7 +103,7 @@ $Errors[$i] = 'StockID'; $i++; } - if (ContainsIllegalCharacters($StockID) OR strstr($StockID,' ')) { + if (ContainsIllegalCharacters($StockID) OR mb_strstr($StockID,' ')) { $InputError = 1; prnMsg(_('The stock item code cannot contain any of the illegal characters') ,'error'); $Errors[$i] = 'StockID'; Modified: trunk/SuppLoginSetup.php =================================================================== --- trunk/SuppLoginSetup.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/SuppLoginSetup.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -64,7 +64,7 @@ $InputError = 1; prnMsg(_('The password entered must be at least 5 characters long'),'error'); } - } elseif (strstr($_POST['Password'],$_POST['UserID'])!= False){ + } elseif (mb_strstr($_POST['Password'],$_POST['UserID'])!= False){ $InputError = 1; prnMsg(_('The password cannot contain the user id'),'error'); } Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/SystemParameters.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -33,7 +33,7 @@ } elseif (mb_strlen($_POST['X_DefaultCreditLimit']) > 12 || !is_numeric($_POST['X_DefaultCreditLimit']) ) { $InputError = 1; prnMsg(_('Default Credit Limit must be a number'),'error'); - } elseif (strstr($_POST['X_RomalpaClause'], "'") || mb_strlen($_POST['X_RomalpaClause']) > 5000) { + } elseif (mb_strstr($_POST['X_RomalpaClause'], "'") || mb_strlen($_POST['X_RomalpaClause']) > 5000) { $InputError = 1; prnMsg(_('The Romalpa Clause may not contain single quotes and may not be longer than 5000 chars'),'error'); } elseif (mb_strlen($_POST['X_QuickEntries']) > 2 || !is_numeric($_POST['X_QuickEntries']) || Modified: trunk/UpgradeDatabase.php =================================================================== --- trunk/UpgradeDatabase.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/UpgradeDatabase.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -122,7 +122,7 @@ if (mb_substr($SQLEntries[$i], 0, 2) != '--' AND mb_substr($SQLEntries[$i], 0, 3) != 'USE' - AND strstr($SQLEntries[$i],'/*')==FALSE + AND mb_strstr($SQLEntries[$i],'/*')==FALSE AND mb_strlen($SQLEntries[$i])>1){ $sql .= ' ' . $SQLEntries[$i]; Modified: trunk/WWW_Users.php =================================================================== --- trunk/WWW_Users.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/WWW_Users.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -70,7 +70,7 @@ $InputError = 1; prnMsg(_('The password entered must be at least 5 characters long'),'error'); } - } elseif (strstr($_POST['Password'],$_POST['UserID'])!= False){ + } elseif (mb_strstr($_POST['Password'],$_POST['UserID'])!= False){ $InputError = 1; prnMsg(_('The password cannot contain the user id'),'error'); } elseif ((mb_strlen($_POST['Cust'])>0) AND (mb_strlen($_POST['BranchCode'])==0)) { Modified: trunk/WorkCentres.php =================================================================== --- trunk/WorkCentres.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/WorkCentres.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -29,7 +29,7 @@ $InputError = 1; prnMsg(_('The Work Centre description must be at least 3 characters long'),'error'); } - if (strstr($_POST['Code'],' ') OR strstr($_POST['Code'],"'") OR strstr($_POST['Code'],'+') OR strstr($_POST['Code'],"\\") OR strstr($_POST['Code'],"\"") OR strstr($_POST['Code'],'&') OR strstr($_POST['Code'],'.') OR strstr($_POST['Code'],'"')) { + if (mb_strstr($_POST['Code'],' ') OR mb_strstr($_POST['Code'],"'") OR mb_strstr($_POST['Code'],'+') OR mb_strstr($_POST['Code'],"\\") OR mb_strstr($_POST['Code'],"\"") OR mb_strstr($_POST['Code'],'&') OR mb_strstr($_POST['Code'],'.') OR mb_strstr($_POST['Code'],'"')) { $InputError = 1; prnMsg(_('The work centre code cannot contain any of the following characters') . " - ' & + \" \\ " . _('or a space'),'error'); } Modified: trunk/Z_ImportStocks.php =================================================================== --- trunk/Z_ImportStocks.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_ImportStocks.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -119,7 +119,7 @@ $InputError = 1; prnMsg (_('The Stock Item code cannot be empty'),'error'); } - if (strstr($StockID,' ') OR strstr($StockID,"'") OR strstr($StockID,'+') OR strstr($StockID,"\\") OR strstr($StockID,"\"") OR strstr($StockID,'&') OR strstr($StockID,'"')) { + if (mb_strstr($StockID,' ') OR mb_strstr($StockID,"'") OR mb_strstr($StockID,'+') OR mb_strstr($StockID,"\\") OR mb_strstr($StockID,"\"") OR mb_strstr($StockID,'&') OR mb_strstr($StockID,'"')) { $InputError = 1; prnMsg(_('The stock item code cannot contain any of the following characters') . " ' & + \" \\ " . _('or a space'). " (". $StockID. ")",'error'); $StockID=''; Modified: trunk/Z_MakeNewCompany.php =================================================================== --- trunk/Z_MakeNewCompany.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_MakeNewCompany.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -104,7 +104,7 @@ if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' AND mb_substr($SQLScriptFile[$i], 0, 3) != 'USE' - AND strstr($SQLScriptFile[$i],'/*')==FALSE + AND mb_strstr($SQLScriptFile[$i],'/*')==FALSE AND mb_strlen($SQLScriptFile[$i])>1){ $SQL .= ' ' . $SQLScriptFile[$i]; Modified: trunk/Z_Upgrade_3.04-3.05.php =================================================================== --- trunk/Z_Upgrade_3.04-3.05.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_Upgrade_3.04-3.05.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -35,7 +35,7 @@ if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' AND mb_substr($SQLScriptFile[$i], 0, 3) != 'USE' - AND strstr($SQLScriptFile[$i],'/*')==FALSE + AND mb_strstr($SQLScriptFile[$i],'/*')==FALSE AND mb_strlen($SQLScriptFile[$i])>1){ $SQL .= ' ' . $SQLScriptFile[$i]; Modified: trunk/Z_Upgrade_3.05-3.06.php =================================================================== --- trunk/Z_Upgrade_3.05-3.06.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_Upgrade_3.05-3.06.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -27,7 +27,7 @@ if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' AND mb_substr($SQLScriptFile[$i], 0, 3) != 'USE' - AND strstr($SQLScriptFile[$i],'/*')==FALSE + AND mb_strstr($SQLScriptFile[$i],'/*')==FALSE AND mb_strlen($SQLScriptFile[$i])>1){ $SQL .= ' ' . $SQLScriptFile[$i]; Modified: trunk/Z_Upgrade_3.07-3.08.php =================================================================== --- trunk/Z_Upgrade_3.07-3.08.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_Upgrade_3.07-3.08.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -27,7 +27,7 @@ if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' AND mb_substr($SQLScriptFile[$i], 0, 3) != 'USE' - AND strstr($SQLScriptFile[$i],'/*')==FALSE + AND mb_strstr($SQLScriptFile[$i],'/*')==FALSE AND mb_strlen($SQLScriptFile[$i])>1){ $SQL .= ' ' . $SQLScriptFile[$i]; Modified: trunk/Z_Upgrade_3.08-3.09.php =================================================================== --- trunk/Z_Upgrade_3.08-3.09.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_Upgrade_3.08-3.09.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -27,7 +27,7 @@ if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' AND mb_substr($SQLScriptFile[$i], 0, 3) != 'USE' - AND strstr($SQLScriptFile[$i],'/*')==FALSE + AND mb_strstr($SQLScriptFile[$i],'/*')==FALSE AND mb_strlen($SQLScriptFile[$i])>1){ $SQL .= ' ' . $SQLScriptFile[$i]; Modified: trunk/Z_Upgrade_3.09-3.10.php =================================================================== --- trunk/Z_Upgrade_3.09-3.10.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_Upgrade_3.09-3.10.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -27,7 +27,7 @@ if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' AND mb_substr($SQLScriptFile[$i], 0, 3) != 'USE' - AND strstr($SQLScriptFile[$i],'/*')==FALSE + AND mb_strstr($SQLScriptFile[$i],'/*')==FALSE AND mb_strlen($SQLScriptFile[$i])>1){ $SQL .= ' ' . $SQLScriptFile[$i]; Modified: trunk/Z_Upgrade_3.10-3.11.php =================================================================== --- trunk/Z_Upgrade_3.10-3.11.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_Upgrade_3.10-3.11.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -37,7 +37,7 @@ if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' AND mb_substr($SQLScriptFile[$i], 0, 3) != 'USE' - AND strstr($SQLScriptFile[$i],'/*')==FALSE + AND mb_strstr($SQLScriptFile[$i],'/*')==FALSE AND mb_strlen($SQLScriptFile[$i])>1){ $sql .= ' ' . $SQLScriptFile[$i]; Modified: trunk/Z_Upgrade_3.11-4.00.php =================================================================== --- trunk/Z_Upgrade_3.11-4.00.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/Z_Upgrade_3.11-4.00.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -37,7 +37,7 @@ if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' AND mb_substr($SQLScriptFile[$i], 0, 3) != 'USE' - AND strstr($SQLScriptFile[$i],'/*')==FALSE + AND mb_strstr($SQLScriptFile[$i],'/*')==FALSE AND mb_strlen($SQLScriptFile[$i])>1){ $sql .= ' ' . $SQLScriptFile[$i]; Modified: trunk/api/api_debtortransactions.php =================================================================== --- trunk/api/api_debtortransactions.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/api/api_debtortransactions.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -87,9 +87,9 @@ $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); $DateFormat=$myrow[0]; - if (strstr('/',$PeriodEnd)) { + if (mb_strstr('/',$PeriodEnd)) { $Date_Array = explode('/',$PeriodEnd); - } elseif (strstr('.',$PeriodEnd)) { + } elseif (mb_strstr('.',$PeriodEnd)) { $Date_Array = explode('.',$PeriodEnd); } if ($DateFormat=='d/m/Y') { Modified: trunk/api/api_salesorders.php =================================================================== --- trunk/api/api_salesorders.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/api/api_salesorders.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -43,9 +43,9 @@ $result=api_DB_query($sql, $db); $myrow=DB_fetch_array($result); $DateFormat=$myrow[0]; - if (strstr($orddate,"/")) { + if (mb_strstr($orddate,"/")) { $DateArray = explode('/',$orddate); - } elseif (strstr($orddate,".")) { + } elseif (mb_strstr($orddate,".")) { $DateArray = explode('.',$orddate); } if ($DateFormat=='d/m/Y') { @@ -121,9 +121,9 @@ $result=api_DB_query($sql, $db); $myrow=DB_fetch_array($result); $DateFormat=$myrow[0]; - if (strstr($deliverydate,'/')) { + if (mb_strstr($deliverydate,'/')) { $DateArray = explode('/',$deliverydate); - } elseif (strstr($PeriodEnd,'.')) { + } elseif (mb_strstr($PeriodEnd,'.')) { $DateArray = explode('.',$deliverydate); } if ($DateFormat=='d/m/Y') { @@ -231,9 +231,9 @@ $result=api_DB_query($sql, $db); $myrow=DB_fetch_array($result); $DateFormat=$myrow[0]; - if (strstr($itemdue,'/')) { + if (mb_strstr($itemdue,'/')) { $DateArray = explode('/',$itemdue); - } elseif (strstr($itemdue,'.')) { + } elseif (mb_strstr($itemdue,'.')) { $DateArray = explode('.',$itemdue); } if ($DateFormat=='d/m/Y') { Modified: trunk/api/api_stock.php =================================================================== --- trunk/api/api_stock.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/api/api_stock.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -79,9 +79,9 @@ $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); $DateFormat=$myrow[0]; - if (strstr('/',$PeriodEnd)) { + if (mb_strstr('/',$PeriodEnd)) { $Date_Array = explode('/',$PeriodEnd); - } elseif (strstr('.',$PeriodEnd)) { + } elseif (mb_strstr('.',$PeriodEnd)) { $Date_Array = explode('.',$PeriodEnd); } if ($DateFormat=='d/m/Y') { Modified: trunk/api/api_suppliers.php =================================================================== --- trunk/api/api_suppliers.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/api/api_suppliers.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -51,9 +51,9 @@ $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); $DateFormat=$myrow[0]; - if (strstr('/',$PeriodEnd)) { + if (mb_strstr('/',$PeriodEnd)) { $Date_Array = explode('/',$PeriodEnd); - } elseif (strstr('.',$PeriodEnd)) { + } elseif (mb_strstr('.',$PeriodEnd)) { $Date_Array = explode('.',$PeriodEnd); } if ($DateFormat=='d/m/Y') { Modified: trunk/api/api_workorders.php =================================================================== --- trunk/api/api_workorders.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/api/api_workorders.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -48,9 +48,9 @@ $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); $DateFormat=$myrow[0]; - if (strstr('/',$PeriodEnd)) { + if (mb_strstr('/',$PeriodEnd)) { $Date_Array = explode('/',$PeriodEnd); - } elseif (strstr('.',$PeriodEnd)) { + } elseif (mb_strstr('.',$PeriodEnd)) { $Date_Array = explode('.',$PeriodEnd); } if ($DateFormat=='d/m/Y') { @@ -81,9 +81,9 @@ $result=DB_query($sql, $db); $myrow=DB_fetch_array($result); $DateFormat=$myrow[0]; - if (strstr('/',$PeriodEnd)) { + if (mb_strstr('/',$PeriodEnd)) { $Date_Array = explode('/',$PeriodEnd); - } elseif (strstr('.',$PeriodEnd)) { + } elseif (mb_strstr('.',$PeriodEnd)) { $Date_Array = explode('.',$PeriodEnd); } if ($DateFormat=='d/m/Y') { Property changes on: trunk/build/tests/PurchasingTest.php ___________________________________________________________________ Deleted: svn:executable - * Modified: trunk/build/tests/includes/SelectModule.php =================================================================== --- trunk/build/tests/includes/SelectModule.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/build/tests/includes/SelectModule.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -1,6 +1,6 @@ <?php -$ModuleID=mb_substr(strstr($result, $ModuleName, true),-4,2); +$ModuleID=mb_substr(mb_strstr($result, $ModuleName, true),-4,2); $url=$RootPath.'index.php?Application='.$ModuleID; include('GetURL.php'); Modified: trunk/includes/MiscFunctions.php =================================================================== --- trunk/includes/MiscFunctions.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/includes/MiscFunctions.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -108,12 +108,12 @@ function ContainsIllegalCharacters ($CheckVariable) { - if (strstr($CheckVariable,"'") - OR strstr($CheckVariable,'+') - OR strstr($CheckVariable,"\"") - OR strstr($CheckVariable,'&') - OR strstr($CheckVariable,"\\") - OR strstr($CheckVariable,'"')){ + if (mb_strstr($CheckVariable,"'") + OR mb_strstr($CheckVariable,'+') + OR mb_strstr($CheckVariable,"\"") + OR mb_strstr($CheckVariable,'&') + OR mb_strstr($CheckVariable,"\\") + OR mb_strstr($CheckVariable,'"')){ return true; } else { Modified: trunk/install/save.php =================================================================== --- trunk/install/save.php 2011-07-21 16:21:14 UTC (rev 6829) +++ trunk/install/save.php 2011-07-21 16:22:09 UTC (rev 6830) @@ -293,7 +293,7 @@ $SQLScriptFile[$i] = trim($SQLScriptFile[$i]); //ignore lines that start with -- or USE or /* if (mb_substr($SQLScriptFile[$i], 0, 2) != '--' - OR strstr($SQLScriptFile[$i],'/*')==FALSE + OR mb_strstr($SQLScriptFile[$i],'/*')==FALSE OR mb_strlen($SQLScriptFile[$i])>1){ $SQL .= ' ' . $SQLScriptFile[$i]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |