[Mapbender-commits] r8180 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Oct 10 05:53:41 EDT 2011
Author: verenadiewald
Date: 2011-10-10 02:53:41 -0700 (Mon, 10 Oct 2011)
New Revision: 8180
Modified:
trunk/mapbender/http/php/mod_layerMetadata.php
Log:
allow curly brackets in <a href...> creation in function display_text
Modified: trunk/mapbender/http/php/mod_layerMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_layerMetadata.php 2011-10-10 09:53:06 UTC (rev 8179)
+++ trunk/mapbender/http/php/mod_layerMetadata.php 2011-10-10 09:53:41 UTC (rev 8180)
@@ -27,7 +27,7 @@
$layer_name = urldecode($_GET['name']);
function display_text($string) {
- $string = mb_eregi_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\\0\" target=_blank>\\0</a>", $string);
+ $string = mb_eregi_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/{}]", "<a href=\"\\0\" target=_blank>\\0</a>", $string);
$string = mb_eregi_replace("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@([0-9a-z](-?[0-9a-z])*\.)+[a-z]{2}([zmuvtg]|fo|me)?$", "<a href=\"mailto:\\0\" target=_blank>\\0</a>", $string);
$string = mb_eregi_replace("\n", "<br>", $string);
return $string;
More information about the Mapbender_commits
mailing list