|
From: Alexandros V. <av...@us...> - 2005-12-06 12:38:12
|
Update of /cvsroot/sieve-php/sieve-php In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6951 Modified Files: sieve-php.lib.php CHANGELOG Log Message: Fix curly braces escaping, thanks to Oded Arbel Index: sieve-php.lib.php =================================================================== RCS file: /cvsroot/sieve-php/sieve-php/sieve-php.lib.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** sieve-php.lib.php 6 Dec 2005 12:23:23 -0000 1.8 --- sieve-php.lib.php 6 Dec 2005 12:38:04 -0000 1.9 *************** *** 547,551 **** $len=strlen($this->script); ! $this->lastcmd = "PUTSCRIPT \"$scriptname\" \{$len+}\r\n$this->script\r\n"; fputs($this->fp, $this->lastcmd); return sieve::get_response(); --- 547,551 ---- $len=strlen($this->script); ! $this->lastcmd = 'PUTSCRIPT "$scriptname" {'.$len.'+}'."\r\n".$this->script."\r\n"; fputs($this->fp, $this->lastcmd); return sieve::get_response(); *************** *** 693,697 **** $this->len=strlen($auth); ! fputs($this->fp, "AUTHENTICATE \"PLAIN\" \{$this->len+}\r\n"); fputs($this->fp, "$auth\r\n"); --- 693,697 ---- $this->len=strlen($auth); ! fputs($this->fp, 'AUTHENTICATE "PLAIN" {' . $this->len . '+}' . "\r\n"); fputs($this->fp, "$auth\r\n"); Index: CHANGELOG =================================================================== RCS file: /cvsroot/sieve-php/sieve-php/CHANGELOG,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CHANGELOG 6 Dec 2005 12:24:33 -0000 1.5 --- CHANGELOG 6 Dec 2005 12:38:04 -0000 1.6 *************** *** 9,12 **** --- 9,15 ---- Sirius Corporation + * Fix curly braces '{' escaping, to work correctly in PHP 5.1. (Thanks to + Oded Arbel). + * Cosmetic changes to the test PHP script. |