|
From: <pdo...@us...> - 2021-04-12 03:16:50
|
Revision: 14912
http://sourceforge.net/p/squirrelmail/code/14912
Author: pdontthink
Date: 2021-04-12 03:16:42 +0000 (Mon, 12 Apr 2021)
Log Message:
-----------
Allow plugins to add non-link text for attachments
Modified Paths:
--------------
branches/SM-1_4-STABLE/squirrelmail/functions/mime.php
Modified: branches/SM-1_4-STABLE/squirrelmail/functions/mime.php
===================================================================
--- branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2021-03-31 05:20:39 UTC (rev 14911)
+++ branches/SM-1_4-STABLE/squirrelmail/functions/mime.php 2021-04-12 03:16:42 UTC (rev 14912)
@@ -568,9 +568,14 @@
} else {
$attachments .= ' | ';
}
- $attachments .= '<a href="' . $val['href'] . '" '
- . (!empty($val['extra']) ? $val['extra'] : '')
- . '>' . $val['text'] . '</a>';
+ if (empty($val['href']))
+ $attachments .= '<span '
+ . (!empty($val['extra']) ? $val['extra'] : '')
+ . '>' . $val['text'] . '</span>';
+ else
+ $attachments .= '<a href="' . $val['href'] . '" '
+ . (!empty($val['extra']) ? $val['extra'] : '')
+ . '>' . $val['text'] . '</a>';
}
unset($links);
$attachments .= "</td></tr>\n";
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|