Commit a3a5d927 authored by Sebastien Moretti's avatar Sebastien Moretti

Remove *type="text/javascript"* because it is now unnecessary for JavaScript resources

parent 716db2c3
......@@ -771,7 +771,7 @@ public class HtmlParentDisplay extends ConcreteDisplayParent {
}
private String getObfuscateEmailLink(String encodedLinkText) {
return "<script type='text/javascript'>eval(unescape("
return "<script>eval(unescape("
+ "'%66%75%6E%63%74%69%6F%6E%20%70%67%72%65%67%67%5F%74%72%61%6E%73%70%6F%73%65"
+ "%31%28%68%29%20%7B%76%61%72%20%73%3D%27%61%6D%6C%69%6F%74%42%3A%65%67%40%65"
+ "%69%73%2E%62%77%73%73%69%73%27%3B%76%61%72%20%72%3D%27%27%3B%66%6F%72%28%76"
......@@ -908,7 +908,7 @@ public class HtmlParentDisplay extends ConcreteDisplayParent {
*/
protected void includeJs(String fileName) {
log.entry(fileName);
this.writeln("<script type='text/javascript' src='" +
this.writeln("<script src='" +
this.prop.getBgeeRootDirectory() + this.prop.getJavascriptFilesRootDirectory() +
this.getVersionedJsFileName(fileName) + "'></script>");
log.exit();
......
......@@ -204,7 +204,7 @@ public class HtmlPrivacyPolicyDisplay extends HtmlParentDisplay implements Priva
private String getUnilEmail() {
log.entry();
return log.exit("<script type='text/javascript'>eval(unescape("
return log.exit("<script>eval(unescape("
+ "'%66%75%6E%63%74%69%6F%6E%20%73%65%62%5F%74%72%61%6E%73%70%6F%73%65%32%31%30%38" +
"%31%32%30%28%68%29%20%7B%76%61%72%20%73%3D%27%61%6D%6C%69%6F%74%67%3A%65%77%61%6E" +
"%6C%65%65%6C%67%2E%6C%69%69%6C%72%65%6E%6F%75%40%69%6E%2E%6C%68%63%27%3B%76%61%72" +
......@@ -221,7 +221,7 @@ public class HtmlPrivacyPolicyDisplay extends HtmlParentDisplay implements Priva
private String getSibDpoEmail() {
log.entry();
return log.exit("<script type='text/javascript'>eval(unescape("
return log.exit("<script>eval(unescape("
+ "'%66%75%6E%63%74%69%6F%6E%20%73%65%62%5F%74%72%61%6E%73%70%6F%73%65%32%31%30%38" +
"%35%39%28%68%29%20%7B%76%61%72%20%73%3D%27%61%6D%6C%69%6F%74%64%3A%6F%70%73%40%62" +
"%69%73%2E%69%77%73%73%27%3B%76%61%72%20%72%3D%27%27%3B%66%6F%72%28%76%61%72%20%69" +
......
......@@ -11,7 +11,7 @@ public class EMailObfuscation {
this.transposeEmail(href), alt_text);
email = email.replaceAll("@", " [AT] ");
String obfuscatedEmail = String.format("<script type=\"text/javascript\">eval(unescape('%1$s'));</script><noscript>%2$s</noscript>",
String obfuscatedEmail = String.format("<script>eval(unescape('%1$s'));</script><noscript>%2$s</noscript>",
this.escapeencodeEmail(code), email);
return obfuscatedEmail;
}
......
......@@ -48,7 +48,7 @@
$usecount++;
$code = sprintf("function pgregg_transpose%d(h) {var s='%s';var r='';for(var i=0;i<s.length;i++,i++){r=r+s.substring(i+1,i+2)+s.substring(i,i+1)}h.href=r;}document.write('<a href=\"#\" onMouseOver=\"javascript:pgregg_transpose%d(this)\" onFocus=\"javascript:pgregg_transpose%d(this)\">%s</a>');", $usecount, transpose($href), $usecount, $usecount, $text);
$UserCode = sprintf("%s%s%s",
"<script type=\"text/javascript\">eval(unescape('",
"<script>eval(unescape('",
escapeencode($code),
"'));</script><noscript>...</noscript>");
return $UserCode;
......
......@@ -14,7 +14,7 @@ sub transpose_eMails_delayed {
$emails =~ s{@}{ [AT] }g;
# Break e-mail addresses for noscript tag.
my $userCode = sprintf("%s%s%s", "<script type=\"text/javascript\">eval(unescape('", &escapeencode($code), "'));</script><noscript>$emails</noscript>");
my $userCode = sprintf("%s%s%s", "<script>eval(unescape('", &escapeencode($code), "'));</script><noscript>$emails</noscript>");
return $userCode;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment