Alexander Nicolaysen Sørnes : query_parameters: replace deprecated split with preg_split
Alexander Nicolaysen Sørnes
asornes at winehq.org
Sun Nov 22 08:38:23 CST 2009
Module: appdb
Branch: master
Commit: 805ce2c3d35a42b19508e5e13d832b50ca4af6a5
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=805ce2c3d35a42b19508e5e13d832b50ca4af6a5
Author: Alexander Nicolaysen Sørnes <alexander at linux-xqqm.(none)>
Date: Sat Nov 21 18:16:49 2009 +0100
query_parameters: replace deprecated split with preg_split
---
include/query.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/query.php b/include/query.php
index 0c45496..9527fb8 100644
--- a/include/query.php
+++ b/include/query.php
@@ -85,7 +85,7 @@ function query_parameters()
$aData = func_get_args();
$sQuery = $aData[0];
- $aTokens = split("[&?~]", $sQuery); /* NOTE: no need to escape characters inside of [] in regex */
+ $aTokens = preg_split("/[&?~]/", $sQuery); /* NOTE: no need to escape characters inside of [] in regex */
$sPreparedquery = $aTokens[0];
$iCount = strlen($aTokens[0]);
More information about the wine-cvs
mailing list