|
@@ -151,14 +151,16 @@ function timeDiff(date){
|
|
|
return td;
|
|
|
}
|
|
|
function redirect(zbadd,link,sid,sds){
|
|
|
- link = link.replace(/\n/g,"");
|
|
|
- if(!/^http/.test(link)){
|
|
|
- link="http://"+link
|
|
|
+ if(link != null && typeof(link) != "undefined"){
|
|
|
+ link = link.replace(/\n/g,"");
|
|
|
+ if(!/^http/.test(link)){
|
|
|
+ link="http://"+link
|
|
|
+ }
|
|
|
}
|
|
|
if(sds){
|
|
|
window.location.href=zbadd+"/article/content/"+sid+".html?keywords="+encodeURIComponent(sds);
|
|
|
}else{
|
|
|
- window.location.href=zbadd+"/article/content/"+sid+".html?";
|
|
|
+ window.location.href=zbadd+"/article/content/"+sid+".html";
|
|
|
}
|
|
|
}
|
|
|
function newredirect(zbadd,link,sid,sds){
|