BUGFIX #3458: Don't show javascript:mctmp(0) URLs in URL editor (from r99745)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105524 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-25 02:57:35 +00:00
parent 7f2d888a40
commit cf24b1c765

View File

@ -355,6 +355,9 @@ LinkForm.prototype = {
var linkText = ed.selection.getContent({format : 'html'}).replace(/<\/?a[^>]*>/ig,'');
// Get rid of TinyMCE's temporary URLs
if(href.match(/^javascript:\s*mctmp/)) href = '';
if(href.match(/^mailto:(.*)$/)) {
return {
LinkType: 'email',