WBCE CMS – Way Better Content Editing.
You are not logged in.
Ich habe bemerkt, dass beim Filtern von eMail-Adressen auch eventuelle Style-Attribute im <a> gelöscht werden.
Gehört jetzt nicht zu den gröbsten Problemen (außer bei Teasers, da ist es mir aufgefallen)
Leich zu beheben.
Finde:
preg_match('/id\s*?=\s*?("|\')(.*?)\1/ix', $match[0], $id_attr);
$id_attr = empty($id_attr) ? '' : 'id="' . $id_attr[2] . '" ';
und setze darunter:
preg_match('/style\s*?=\s*?("|\')(.*?)\1/ix', $match[0], $style_attr);
$style_attr = empty($style_attr) ? '' : 'style="' . $style_attr[2] . '" ';
finde:
$mailto_link = "<a {$class_attr}{$id_attr}href=\"javascript:mdcr('$encrypted_email','$email_subject')\">" .$match[5] ."</a>";
und ersetze durch:
$mailto_link = "<a {$class_attr}{$id_attr}{$style_attr}href=\"javascript:mdcr('$encrypted_email','$email_subject')\">" .$match[5] ."</a>";
Christian
“We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light.” ― Plato
Online
Servus und Danke!
Ich hab für teasers eine Lösung gefunden, ändert ja nicht jeder den core.
War eher als Anregung gedacht.
Das wird sicher in den Core fließen und in der nächsten Version ergänzt werden.
Es ist schon richtig, dieses Feature fehlt.
Gruß,
Christian
“We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light.” ― Plato
Online