cvs: pearweb /include pear-format-html.php

From: Date: Sun, 30 Mar 2008 21:58:50 +0000
Subject: cvs: pearweb /include pear-format-html.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7425@lists.php.net to get a copy of this message
dufuz Sun Mar 30 21:58:50 2008 UTC Modified files: /pearweb/include pear-format-html.php Log: Request #13470 make_link should make it easy to be xhtml friendly http://cvs.php.net/viewvc.cgi/pearweb/include/pear-format-html.php?r1=1.264&r2=1.265&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.264 pearweb/include/pear-format-html.php:1.265 --- pearweb/include/pear-format-html.php:1.264 Sat Mar 22 00:43:36 2008 +++ pearweb/include/pear-format-html.php Sun Mar 30 21:58:50 2008 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.264 2008/03/22 00:43:36 dufuz Exp $ + $Id: pear-format-html.php,v 1.265 2008/03/30 21:58:50 dufuz Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -669,6 +669,7 @@ */ function make_link($url, $linktext = '', $target = '', $extras = '', $title = '') { + $url = htmlspecialchars($url, ENT_QUOTES, 'ISO8859-15', false); return sprintf('<a href="%s"%s%s%s>%s</a>', $url, ($target ? ' target="'.$target.'"' : ''),

« previous php.pear.core (#7425) next »