single quoted newlines of course will not work here... stupid me
This commit is contained in:
parent
593240b420
commit
f2a9518b5c
@ -215,7 +215,7 @@ class IDF_Scm_Monotone_Usher
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
fwrite($sock, 'USERPASS '.$uc['user'].' '.$uc['pass'].'\n');
|
fwrite($sock, 'USERPASS '.$uc['user'].' '.$uc['pass']."\n");
|
||||||
if (feof($sock)) {
|
if (feof($sock)) {
|
||||||
throw new IDF_Scm_Exception(
|
throw new IDF_Scm_Exception(
|
||||||
'usher closed the connection - probably wrong admin '.
|
'usher closed the connection - probably wrong admin '.
|
||||||
@ -223,7 +223,7 @@ class IDF_Scm_Monotone_Usher
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
fwrite($sock, $cmd.'\n');
|
fwrite($sock, $cmd."\n");
|
||||||
$out = '';
|
$out = '';
|
||||||
while (!feof($sock)) {
|
while (!feof($sock)) {
|
||||||
$out .= fgets($sock);
|
$out .= fgets($sock);
|
||||||
|
Loading…
Reference in New Issue
Block a user