summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-06-28 08:55:47 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-06-28 08:55:47 +0200
commita32b2f2ef7d290c9470e3718fab4b2e68b82c0c6 (patch)
tree139e95edfe513025b9947bfcfb6741bad19b103d /web/html/pkgsubmit.php
parent2e20a7929f2a3e2b6470d7e1e4d9dc69c859aaf1 (diff)
downloadaurweb-a32b2f2ef7d290c9470e3718fab4b2e68b82c0c6.tar.xz
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 <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r--web/html/pkgsubmit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 9577238..fd51c7e 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);