* This contains the functions necessary to detect and decode MIME
* messages.
*
- * @copyright 1999-2011 The SquirrelMail Project Team
+ * @copyright 1999-2012 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
break;
}
} else {
- if (!(isset($aUrl['path']) && $aUrl['path'] == $secremoveimg)) {
+ // anchors are OK
+ // FIXME: can there be abuse of anchors here?
+ // FIXME: stop anchors from opening in another window
+ if (!isset($aUrl['path']) && !empty($aUrl['fragment'])) {
+ }
+ else if (!isset($aUrl['path']) || $aUrl['path'] != $secremoveimg) {
// parse_url did not lead to satisfying result
$attvalue = $sQuote . SM_PATH . 'images/blank.png' . $sQuote;
}