Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR: Fixed a glitch that causes warnings in cli-script execution.

  • Loading branch information...
commit f72c77e984d1f71e1ae6016533d0a09146da72a8 1 parent 55f3ec1
Sam Minnée sminnee authored chillu committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  control/Director.php
3  control/Director.php
View
@@ -725,6 +725,9 @@ public static function forceSSL($patterns = null) {
$matched = false;
if($patterns) {
+ // Calling from the command-line?
+ if(!isset($_SERVER['REQUEST_URI'])) return;
+
// protect portions of the site based on the pattern
$relativeURL = self::makeRelative(Director::absoluteURL($_SERVER['REQUEST_URI']));
foreach($patterns as $pattern) {
Please sign in to comment.
Something went wrong with that request. Please try again.