From 165330a7955cad8ac398204993a96753c96502d0 Mon Sep 17 00:00:00 2001
From: srosse <none@none>
Date: Tue, 17 Jun 2014 14:25:24 +0200
Subject: [PATCH] OO-1090: allow the goto node's javascript in antisamy

---
 .../core/util/filter/impl/_resources/antisamy-tinymce.xml     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/olat/core/util/filter/impl/_resources/antisamy-tinymce.xml b/src/main/java/org/olat/core/util/filter/impl/_resources/antisamy-tinymce.xml
index 7d034891470..d4939a2f103 100644
--- a/src/main/java/org/olat/core/util/filter/impl/_resources/antisamy-tinymce.xml
+++ b/src/main/java/org/olat/core/util/filter/impl/_resources/antisamy-tinymce.xml
@@ -33,6 +33,8 @@
 
 		<!--  force non-empty with a '+' at the end instead of '*'
 		-->
+		<regexp name="olatInternalURL"
+			value="javascript:parent\.gotonode\(\d+\)" />
 		<regexp name="onsiteURL"
 			value="([\p{L}\p{N}\p{Zs}/\.\?=&amp;\-~_])+" />
 		<regexp name="offsiteURL"
@@ -116,7 +118,7 @@
 			<regexp-list>
 				<regexp name="onsiteURL" />
 				<regexp name="offsiteURL" />
-
+				<regexp name="olatInternalURL" />
 				<!--
 				-->
 			</regexp-list>
-- 
GitLab