BryanDavis has uploaded a new change for review.
https://gerrit.wikimedia.org/r/266096
Change subject: Use shell_exec() instead of exec() to replace backticks
......................................................................
Use shell_exec() instead of exec() to replace backticks
Change-Id: I68153065f13ffd17949f99ee262092f11fe13632
---
M www/content/status.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/labs/toollabs
refs/changes/96/266096/1
diff --git a/www/content/status.php b/www/content/status.php
index 1fa7d5a..9a1029e 100644
--- a/www/content/status.php
+++ b/www/content/status.php
@@ -36,7 +36,7 @@
return -1;
}
-$raw = exec( "PATH=/bin:/usr/bin qstat -xml -j '*'|sed -e
's/JATASK:[^>]*/jatask/g'" );
+$raw = shell_exec( "PATH=/bin:/usr/bin qstat -xml -j '*'|sed -e
's/JATASK:[^>]*/jatask/g'" );
$xml = simplexml_load_string( $raw );
unset( $raw );
@@ -76,7 +76,7 @@
}
unset( $xml );
-$raw = exec( "PATH=/bin:/usr/bin qhost -xml -j -F h_vmem" );
+$raw = shell_exec( "PATH=/bin:/usr/bin qhost -xml -j -F h_vmem" );
$xml = simplexml_load_string( $raw );
unset( $raw );
--
To view, visit https://gerrit.wikimedia.org/r/266096
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I68153065f13ffd17949f99ee262092f11fe13632
Gerrit-PatchSet: 1
Gerrit-Project: labs/toollabs
Gerrit-Branch: master
Gerrit-Owner: BryanDavis <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits