diff --git a/libraries/transformations/text_plain__link.inc.php3 b/libraries/transformations/text_plain__link.inc.php3
index 5c23fb499..261a87cb0 100644
--- a/libraries/transformations/text_plain__link.inc.php3
+++ b/libraries/transformations/text_plain__link.inc.php3
@@ -8,11 +8,13 @@ if (!defined('PMA_TRANSFORMATION_TEXT_PLAIN__LINK')){
function PMA_transformation_text_plain__link($buffer, $options = array()) {
include('./libraries/transformations/global.inc.php3');
- $transform_options = array ('string' => '' . (isset($options[1]) ? $options[1] : '%1$s') . '');
+// $transform_options = array ('string' => '' . (isset($options[1]) ? $options[1] : '%1$s') . '');
+
+ $transform_options = array ('string' => '' . (isset($options[1]) ? $options[1] : $buffer) . '');
+
$buffer = PMA_transformation_global_html_replace($buffer, $transform_options);
return $buffer;
- return htmlspecialchars($buffer);
}
}