- fixed security issue with /xml/util/ynetSearch.xml

- hopefully fixed YaCy-UI local search with async=false for Ajax-request

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5170 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
apfelmaennchen 16 years ago
parent c73cf05ddd
commit cd1ac5bb90

@ -48,6 +48,7 @@ public class ynetSearch {
if(post.containsKey("login")){ if(post.containsKey("login")){
prop.put("AUTHENTICATE","admin log-in"); prop.put("AUTHENTICATE","admin log-in");
} }
return prop;
} else { } else {
InputStream is = null; InputStream is = null;
try { try {

@ -69,13 +69,9 @@
<br /> <br />
<label for="resource">Resource/Network:</label> <label for="resource">Resource/Network:</label>
<br /> <br />
<select name="resource" class="selector"> <select name="resource" class="selector">
<!--
<option value="/yacysearch.rss?resource=global&verify=true" selected="selected">freeworld</option> <option value="/yacysearch.rss?resource=global&verify=true" selected="selected">freeworld</option>
<option value="/yacysearch.rss?resource=local&verify=true" >local peer</option> <option value="/yacysearch.rss?resource=local&verify=true" >local peer</option>
-->
<option value="/xml/util/ynetSearch.xml?login=&url=/yacysearch.rss?resource=global&verify=true" >this cluster</option>
<option value="/xml/util/ynetSearch.xml?login=&url=/yacysearch.rss?resource=local&verify=true" >this peer</option>
<option value="ymarks" >bookmarks</option> <option value="ymarks" >bookmarks</option>
<option value="/xml/util/ynetSearch.xml?login=&url=http://sciencenet.fzk.de:8080/yacysearch.rss?resource=global&verify=true" >sciencenet</option> <option value="/xml/util/ynetSearch.xml?login=&url=http://sciencenet.fzk.de:8080/yacysearch.rss?resource=global&verify=true" >sciencenet</option>
</select> </select>

@ -5,6 +5,7 @@
$.ajax({ $.ajax({
type: "GET", type: "GET",
url: query, url: query,
async: false,
dataType: "xml", dataType: "xml",
success: function(xml) { success: function(xml) {
if ($.browser.mozilla && ($.browser.version > 1.8)) { if ($.browser.mozilla && ($.browser.version > 1.8)) {

Loading…
Cancel
Save