Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #163 from msheakoski/patch-1
Browse files Browse the repository at this point in the history
Simplify method of checking for static file requests
  • Loading branch information
geerteltink committed Jun 27, 2017
2 parents 63c71d4 + 0b30373 commit 2894ccc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?php

// Delegate static file requests back to the PHP built-in webserver
if (PHP_SAPI === 'cli-server'
&& is_file(__DIR__ . parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH))
) {
if (PHP_SAPI === 'cli-server' && $_SERVER['SCRIPT_FILENAME'] !== __FILE__) {
return false;
}

Expand Down

0 comments on commit 2894ccc

Please sign in to comment.