Loading ...
Sorry, an error occurred while loading the content.

Re: [xenu-usergroup] Re: checking links in javascript

Expand Messages
  • Tilman Hausherr
    ... Yes. ... So I added ( ?.*)? (each must be ed an extra time because of the C++ compiler) into my string, thus getting Regexp reXenu =
    Message 1 of 35 , Oct 2, 2004
    • 0 Attachment
      On Fri, 01 Oct 2004 06:17:15 -0000, frank visser wrote:

      >btw, does your regex also catch the 'URL?xxxx' varieties?

      Yes.

      You also wrote me previously:

      >in WebQA i found this regex, if that helps:
      >
      >regexp:.*\.(html?|gif|jpe?g|png|jsp|cfm|zip|exe|aspx?|pl|pdf|xml|ra|asx|ram|
      >swf)(\?.*)?

      So I added

      (\\?.*)?

      (each \ must be \ed an extra time because of the C++ compiler) into my
      string, thus getting

      Regexp reXenu =
      "javascript:(.*)\\(['\"](.*(s?html?|gif|jpe?g|png|jsp|cfm|zip|exe|aspx?|pl|pdf|xml|ra|asx|ram|swf|php)(\\?.*)?)['\"](.*)";

      so I get a match for

      javascript:openPopup("http://www.backbonemag.com/php_site/home.php?m_column_id=php_news/wmview.php?ArtID=702",850,550);

      and this regexp works for all links on
      http://webfeat.com/html/news/articles.asp

      but no match on your site for for
      javascript:openSite('http://www.airnyx.de/')
      javascript:openSite('http://www.meteor-wifi.com/en/')
      javascript:openSite('http://www.swisscom-eurospot.com/index.php/internet/de')
      javascript:openSite('http://www.mycloud.net')
      javascript:openSite('http://www.tiscali.de')

      obviously, top domains are a problem, as are URLs with "/" at the end,
      and URLs with just a directory name.

      That is what I meant ("can of worms")

      >the one with the relative link is the tricky one:
      >
      >- javascript:openSite
      >('/corporate/buy/emea/deu/jump/cons/centrino_m/toshiba_de.htm');
      >
      >this URL has to be completed to http://www.intel.com/corporate/...
      >etc., but how can this be done?

      No, that is no problem. However I did not find that particular link.
    • Tilman Hausherr
      Did anyone try to run Xenu with Sandboxie? Does it work? I m thinking about mentioning it on my web page so that paranoid people can use Xenu too :) Tilman
      Message 35 of 35 , Sep 18, 2010
      • 0 Attachment
        Did anyone try to run Xenu with Sandboxie? Does it work? I'm thinking
        about mentioning it on my web page so that paranoid people can use Xenu
        too :)

        Tilman
      Your message has been successfully submitted and would be delivered to recipients shortly.