yacy/yacy_search_server

Clone existing crawler with multi-line crawlingURL

Opened this issue · 0 comments

Steps to reproduce

  • Create a new crawler with many urls for crawlingURL
  • On /CrawlProfileEditor_p.html or /Table_API_p.html click the clone link on a crawler type line.
  • Nothing happens

Note, this may work with less links or an older version. It worked before updating from an old alpine-latest docker tag, but I don't know the date it was made and it no longer exists. I'm currently using the latest docker image as of 2024.08.16.

I manually copied the offending javascript and ran it in the console using backticks to get the clone link to work once. The source looks to use a double-quote for a multiline value.

                      var e = document.createElement("input");
           e.setAttribute("type", "hidden");
           e.setAttribute("name", "crawlingURL");
           e.setAttribute("value", "https://raw.githubusercontent.com/awesome-foss/awesome-sysadmin/master/README.md
https://raw.githubusercontent.com/colindaven/awesome-sysadmin/master/README.md
https://raw.githubusercontent.com/awesome-selfhosted/awesome-selfhosted/master/README.md
https://raw.githubusercontent.com/awesome-selfhosted/awesome-selfhosted/master/non-free.md
https://raw.githubusercontent.com/Hannibal046/Awesome-LLM/main/README.md
https://raw.githubusercontent.com/trimstray/the-book-of-secret-knowledge/master/README.md
https://raw.githubusercontent.com/lukasz-madon/awesome-remote-job/master/README.md
https://raw.githubusercontent.com/thangchung/awesome-dotnet-core/master/README.md
https://raw.githubusercontent.com/quozd/awesome-dotnet/master/README.md
https://raw.githubusercontent.com/EthicalML/awesome-production-machine-learning/master/README.md
https://raw.githubusercontent.com/djsime1/awesome-flipperzero/main/README.md
https://raw.githubusercontent.com/sindresorhus/awesome/main/readme.md");
           f.appendChild(e);
                      var e = document.createElement("input");
           e.setAttribute("type", "hidden");
           e.setAttribute("name", "countryMustMatchSwitch");
           e.setAttribute("value", "0");
           f.appendChild(e);