nette/nette — Issue #489: Script path detecting doesn't work
Author: MartinMajor
Created: 2012-01-24 01:16:48+00:00
State: open

Na me konfiguraci Apache nefunguje spravne autodetekce script path, ackoliv ve starsich verzich Nette fungovala. Problem je zde: https://github.com/nette/nette/blob/master/Nette/Http/RequestFactory.php#L107 , kde je prvni podminka splnena, ale vraci spatny vysledek, pritom druha podminka by vratila spravny vysledek.

Promenne:

```php
$_SERVER['DOCUMENT_ROOT'] = "D:/wamp/www/";
$_SERVER['SCRIPT_FILENAME'] = "D:/wamp/www/nette/sandbox/www/index.php";
$_SERVER['SCRIPT_NAME'] = "/sandbox/www/index.php";
```

a ke scriptu pristupuji pres:
```http://nette.l/sandbox/www/```

Poslal bych pull s prohozenymi podminkami, ale nevim, jestli to nerozhodi zase nejake jine konfigurace.