mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 04:09:56 +03:00
merge branch 1.6 r1274:1275 into trunk (useless code)
git-svn-id: http://piwigo.org/svn/trunk@1276 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
c5c39aee68
commit
79cabc6fd9
1 changed files with 0 additions and 1 deletions
|
@ -479,7 +479,6 @@ function get_html_menu_category($categories)
|
||||||
*/
|
*/
|
||||||
function parse_comment_content($content)
|
function parse_comment_content($content)
|
||||||
{
|
{
|
||||||
htmlentities($content,ENT_QUOTES);
|
|
||||||
$pattern = '/(https?:\/\/\S*)/';
|
$pattern = '/(https?:\/\/\S*)/';
|
||||||
$replacement = '<a href="$1" rel="nofollow">$1</a>';
|
$replacement = '<a href="$1" rel="nofollow">$1</a>';
|
||||||
$content = preg_replace($pattern, $replacement, $content);
|
$content = preg_replace($pattern, $replacement, $content);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue