note 37182 deleted from function.fprintf by pollita
| From: | pollita@php.net | Date: | Thu, 06 Nov 2003 04:17:22 +0000 |
| Subject: | note 37182 deleted from function.fprintf by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59971@lists.php.net to get a copy of this message | ||
Note Submitter: phetta@hotbrev.com
----
This is a fix for the wrapper function I posted in my previous note.
If $format contains a " character when $substr is declared; the eval() call will fail. So add
the line below _before_ $sprintf is declared and this will be fixed.
$format = str_replace('"','\"',$format);