Skip to content

Commit

Permalink
Update BASE for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bcosca committed Jan 7, 2014
1 parent e33f6e9 commit 034b869
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Base extends Prefab {
//@{ Framework details
const
PACKAGE='Fat-Free Framework',
VERSION='3.2.1-Release';
VERSION='3.2.2-Dev';
//@}

//@{ HTTP status codes (RFC 2616)
Expand Down Expand Up @@ -1641,8 +1641,8 @@ function($code,$text) {
$_SERVER['DOCUMENT_ROOT']=realpath($_SERVER['DOCUMENT_ROOT']);
$base='';
if (PHP_SAPI!='cli')
$base=$this->fixslashes(
rtrim(dirname($_SERVER['SCRIPT_NAME']),'/'));
$base=rtrim($this->fixslashes(
dirname($_SERVER['SCRIPT_NAME'])),'/');
$path=preg_replace('/^'.preg_quote($base,'/').'/','',
parse_url($_SERVER['REQUEST_URI'],PHP_URL_PATH));
call_user_func_array('session_set_cookie_params',
Expand Down

0 comments on commit 034b869

Please sign in to comment.