Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX Setting $_REQUEST['url'] in cli-script.php to emulate normal r…

…equest processing

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@115115 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
commit 6e640d1dd6c356ef3bd3a41066b13205a390bcfa 1 parent 9681134
@chillu chillu authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 cli-script.php
View
6 cli-script.php
@@ -50,6 +50,12 @@
$_REQUEST = $_GET;
}
+// Set 'url' GET parameter
+if(isset($_SERVER['argv'][1])) {
+ $_REQUEST['url'] = $_SERVER['argv'][1];
+ $_GET['url'] = $_SERVER['argv'][1];
+}
+
/**
* Include Sapphire's core code
*/
Please sign in to comment.
Something went wrong with that request. Please try again.