diff --git a/searx/webapp.py b/searx/webapp.py index 5b223681e..212dc8acc 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -958,9 +958,7 @@ const search_queryquery = "''' + search_query.query.replace('"',"") + r'''" const search_type = "''' + search_type + r'''" const net_search = ''' + net_search_str + r''' ''' diff --git a/searx/webapp1.py b/searx/webapp1.py index f23dc0a11..f52dbf59d 100644 --- a/searx/webapp1.py +++ b/searx/webapp1.py @@ -1290,7 +1290,7 @@ function replaceUrlWithFootnote(text) { } function beautify(text) { - new_text=text.replaceAll("(","(").replaceAll(")",")").replaceAll(", ",",").replaceAll("链接:","").replaceAll("链接:","") + new_text=text.replaceAll("(","(").replaceAll(")",")").replaceAll(", ",",").replaceAll("链接:","").replaceAll("链接:","").replace(/(https?:\/\/(?!url\d)\S+)/g, ''); for(let i=prompt.url_pair.length;i>=0;--i) { new_text = new_text.replaceAll("(url"+String(i),"(https://url"+String(i) )