diff options
| author | Michael Peter Christen <mc@yacy.net> | 2020-01-16 20:59:02 +0100 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2020-01-16 20:59:02 +0100 |
| commit | f03e16d3dfce9bf3d8d5b3535954f1c0327aa553 (patch) | |
| tree | af4e33a251a04d2ddb0d31311715edcf133690ae /htroot/js/IndexCreate.js | |
| parent | 59181e8009f98371f3294ea4f83cb345d40dc60a (diff) | |
enhanced crawl start url check experience
urls are now urlencoded and a check is also performed
in case that an url is copied into the url field using
copy-paste
Diffstat (limited to 'htroot/js/IndexCreate.js')
| -rw-r--r-- | htroot/js/IndexCreate.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/htroot/js/IndexCreate.js b/htroot/js/IndexCreate.js index f2b7dae65..753365ba9 100644 --- a/htroot/js/IndexCreate.js +++ b/htroot/js/IndexCreate.js @@ -135,6 +135,6 @@ function loadInfos(loadAll) { var url=document.getElementById("crawlingURL").value; if (url.indexOf("ftp") == 0 || url.indexOf("smb") == 0) document.getElementById("crawlingQ").checked = true; // since the pdf parser update for page separation, we need to set this - sndReq('api/getpageinfo_p.xml?actions=title,robots' + (loadAll ? '' : '&maxLinks=50') + '&url='+url); + sndReq('api/getpageinfo_p.xml?actions=title,robots' + (loadAll ? '' : '&maxLinks=50') + '&url=' + encodeURIComponent(url)); document.getElementById("api").innerHTML = "<a href='api/getpageinfo_p.xml?actions=title,robots&url=" + url + "' id='apilink'><img src='env/grafics/api.png' width='60' height='40' alt='API'/></a><span>See the page info about the start url.</span>"; } |
