Letractively / nagios-check-webpage

Automatically exported from code.google.com/p/nagios-check-webpage
0 stars 0 forks source link

getInnerLinks() does not support URL without scheme: //example.org/path/file.ext #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run this plugin an a webpage with URLs wihtout scheme
2. //example.org/path/file.ext

What is the expected output? What do you see instead?

genertead URLs to test should be http://example.org/path/file.ext

Please provide any additional information below.

please add the following lines to you "#change link to full link" code block:

    if parsingResult[i][0,2] == "//"
      parsingResult[i]= mainUrl.scheme + ":" + parsingResult[i]
    end

Original issue reported on code.google.com by sbstn.m...@gmail.com on 10 Feb 2014 at 5:34

GoogleCodeExporter commented 8 years ago
Please use the last version on https://github.com/Toubib/check-webpage

Original comment by toubib....@gmail.com on 10 Feb 2014 at 10:17