cvs: pear /File_IMC/File/IMC Build.php

From: Date: Sat, 28 May 2005 15:12:45 +0000
Subject: cvs: pear /File_IMC/File/IMC Build.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-32179@lists.php.net to get a copy of this message
pmjones Sat May 28 11:12:45 2005 EDT Modified files: /pear/File_IMC/File/IMC Build.php Log: added escaping for colons http://cvs.php.net/diff.php/pear/File_IMC/File/IMC/Build.php?r1=1.4&r2=1.5&ty=u Index: pear/File_IMC/File/IMC/Build.php diff -u pear/File_IMC/File/IMC/Build.php:1.4 pear/File_IMC/File/IMC/Build.php:1.5 --- pear/File_IMC/File/IMC/Build.php:1.4 Mon Nov 17 20:42:09 2003 +++ pear/File_IMC/File/IMC/Build.php Sat May 28 11:12:44 2005 @@ -16,7 +16,7 @@ // | Authors: Paul M. Jones <pmjones@ciaweb.net> | // +----------------------------------------------------------------------+ // -// $Id: Build.php,v 1.4 2003/11/18 01:42:09 pmjones Exp $ +// $Id: Build.php,v 1.5 2005/05/28 15:12:44 pmjones Exp $ require_once 'PEAR.php'; @@ -190,6 +190,10 @@ } else { // this is a text value. + // escape colons not led by a backslash + $regex = '(?<!\\\\)(\:)'; + $text = preg_replace("/$regex/i", "\\:", $text); + // escape semicolons not led by a backslash $regex = '(?<!\\\\)(\;)'; $text = preg_replace("/$regex/i", "\\;", $text);

« previous php.pear.cvs (#32179) next »