cvs: php4 /pear/HTML ITX.php
| From: | Ulf Wendel | Date: | Wed, 12 Dec 2001 12:38:49 +0000 |
| Subject: | cvs: php4 /pear/HTML ITX.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1519@lists.php.net to get a copy of this message | ||
uw Wed Dec 12 07:38:49 2001 EDT
Modified files:
/php4/pear/HTML ITX.php
Log:
remove surrounding " and ' from the macro call arguments
Index: php4/pear/HTML/ITX.php
diff -u php4/pear/HTML/ITX.php:1.12 php4/pear/HTML/ITX.php:1.13
--- php4/pear/HTML/ITX.php:1.12 Tue Dec 11 10:31:25 2001
+++ php4/pear/HTML/ITX.php Wed Dec 12 07:38:49 2001
@@ -1,9 +1,9 @@
<?php
//
// +----------------------------------------------------------------------+
-// | PHP Version 4 |
+// | PHP version 4.0 |
// +----------------------------------------------------------------------+
-// | Copyright (c) 1997-2002 The PHP Group |
+// | Copyright (c) 1997-2001 The PHP Group |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license, |
// | that is bundled with this package in the file LICENSE, and is |
@@ -16,7 +16,7 @@
// | Authors: Ulf Wendel <ulf.wendel@phpdoc.de> |
// +----------------------------------------------------------------------+
//
-// $Id: ITX.php,v 1.12 2001/12/11 15:31:25 sebastian Exp $
+// $Id: ITX.php,v 1.13 2001/12/12 12:38:49 uw Exp $
//
require_once('HTML/IT.php');
@@ -35,7 +35,7 @@
*
* @author Ulf Wendel <uw@netuse.de>
* @access public
-* @version $Id: ITX.php,v 1.12 2001/12/11 15:31:25 sebastian Exp $
+* @version $Id: ITX.php,v 1.13 2001/12/12 12:38:49 uw Exp $
* @package IT[X]
*/
class IntegratedTemplateExtension extends IntegratedTemplate {
@@ -587,7 +587,8 @@
$template = str_replace($regs[0] . $head . ')', '{__function' .
$num . '__}', $template);
while ('' != $head && $arg = $this->getValue($head,
',')) {
- $args[] = trim($arg);
+ $arg2 = trim($args2);
+ $args[] = ('"' == $arg2{0} || "'" == $arg2{0}) ?
substr($arg2, 1, -1) : $arg2;
if ($arg == $head)
break;
$head = substr($head, strlen($arg) + 1);
@@ -735,4 +736,4 @@
} // end func warning
} // end class IntegratedTemplateExtension
-?>
\ No newline at end of file
+?>