14ac73ec by Jeremy Groot

update to extern links

1 parent 4103d740
...@@ -22938,7 +22938,7 @@ ...@@ -22938,7 +22938,7 @@
22938 } 22938 }
22939 function getIsExternLink($link) { 22939 function getIsExternLink($link) {
22940 $link = $link.trim(); 22940 $link = $link.trim();
22941 if ($link.indexOf('brokers') === -1 && $link.indexOf('localhost') === -1 && $link.indexOf('mailto:') === -1 && $link.indexOf('tel:') === -1 && $link.indexOf('#') !== 0) { 22941 if ($link.indexOf('brokers') === -1 && $link.indexOf('broker') === -1 && $link.indexOf('localhost') === -1 && $link.indexOf('mailto:') === -1 && $link.indexOf('tel:') === -1 && $link.indexOf('#') !== 0) {
22942 if ($link !== "/" && $link !== "#" && $link.indexOf('/') !== 0) { 22942 if ($link !== "/" && $link !== "#" && $link.indexOf('/') !== 0) {
22943 return true; 22943 return true;
22944 } 22944 }
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -27,7 +27,7 @@ function checkOffsetForTopper() { ...@@ -27,7 +27,7 @@ function checkOffsetForTopper() {
27 27
28 function getIsExternLink($link) { 28 function getIsExternLink($link) {
29 $link = $link.trim(); 29 $link = $link.trim();
30 if($link.indexOf('brokers') === -1 && 30 if($link.indexOf('brokers') === -1 && $link.indexOf('broker') === -1 &&
31 $link.indexOf('localhost') === -1 && $link.indexOf('mailto:') === -1 && $link.indexOf('tel:') === -1 31 $link.indexOf('localhost') === -1 && $link.indexOf('mailto:') === -1 && $link.indexOf('tel:') === -1
32 && $link.indexOf('#') !== 0) { 32 && $link.indexOf('#') !== 0) {
33 if($link !== "/" && $link !== "#" && $link.indexOf('/') !== 0) { 33 if($link !== "/" && $link !== "#" && $link.indexOf('/') !== 0) {
......
...@@ -203,7 +203,8 @@ function resources_fav(){ ...@@ -203,7 +203,8 @@ function resources_fav(){
203 203
204 204
205 function getIsExternLink($link) { 205 function getIsExternLink($link) {
206 if (strpos($link,'brokers') === -1 && strpos($link,'localhost') === -1 && strpos($link,'mailto:') === -1 && strpos($link,'tel:') === -1 && strpos($link,'#') !== 0) { 206 if (strpos($link,'brokers') === -1 && strpos($link,'broker') === -1
207 && strpos($link,'localhost') === -1 && strpos($link,'mailto:') === -1 && strpos($link,'tel:') === -1 && strpos($link,'#') !== 0) {
207 if ($link !== "/" && $link !== "#" && strpos($link,'/') !== 0) { 208 if ($link !== "/" && $link !== "#" && strpos($link,'/') !== 0) {
208 return true; 209 return true;
209 } 210 }
......