Indefero

Indefero Commit Details


Date:2011-08-25 07:50:21 (13 years 3 months ago)
Author:Patrick Georgi
Branch:feature.webrepos
Commit:f7470e4a7afb0f4674e9c18511b831ebd8fef5fc
Parents: c10c002ee3c68b324c70775f45f7171989809e04
Message:Use REDIRECT_* for FastCGI/PHP Authorization handling

Changes:

File differences

src/IDF/Scm/Git.php
928928
929929
930930
931
932
931
932
933933
934934
935935
public function repository($request, $match)
{
// authenticate: authenticate connection through "extra" password
if (!empty($_SERVER['HTTP_AUTHORIZATION']))
list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
if (!empty($_SERVER['REDIRECT_HTTP_AUTHORIZATION']))
list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':' , base64_decode(substr($_SERVER['REDIRECT_HTTP_AUTHORIZATION'], 6)));
if (!empty($_SERVER['PHP_AUTH_USER'])) {
$sql = new Pluf_SQL('login=%s', array($_SERVER['PHP_AUTH_USER']));

Archive Download the corresponding diff file

Page rendered in 0.08890s using 13 queries.