From a32b2f2ef7d290c9470e3718fab4b2e68b82c0c6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 28 Jun 2011 08:55:47 +0200 Subject: Replace split() invocations with explode() Do not use split(), which has been deprecated as of PHP 5.3.0. As we don't even require regular expressions here, just use explode() instead. Signed-off-by: Lukas Fleischer --- web/html/pkgsubmit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/html') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 95772386..fd51c7ef 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -101,7 +101,7 @@ if ($uid): $continuation_line = 0; $current_line = ""; $paren_depth = 0; - foreach (split("\n", $pkgbuild_raw) as $line) { + foreach (explode("\n", $pkgbuild_raw) as $line) { $line = trim($line); # Remove comments $line = preg_replace('/\s*#.*/', '', $line); -- cgit v1.2.3-24-g4f1b