Talk:Deobfuscator

From BioPerl
Jump to: navigation, search

Fixing bugs

'localhost' instead of relative URLs in method links

Looks like the links to functions (left most column) needs to be fixed as it is pointing to 'localhost' instead of a relative URL. I think Mauricio is working on a local (OBF server) install of DeOfb so that we can hack code and make changes available. I would also like to see if we can use one of the old OBF servers as a CGI test-host so other people can have access to hacking CGIs. --jason stajich 16:57, 4 May 2006 (EDT)


Yep, that 'localhost' URL was my (admittedly naive) best guess at what most end users would want. In deob_interface.cgi, the root URL for deob_detail.cgi's location (which is used in those lefthand column functions links) is set in the $deob_detail_path variable:

line 215 of deob_interface.cgi:

my $deob_detail_path    = 'http://localhost/cgi-bin/deob_detail.cgi';

I've changed it in my copy to be just:

my $deob_detail_path    = 'deob_detail.cgi';

so that relative URLs will be made instead.

Once Mauricio has the OBF server install up and running, I'd be happy to make this change (and others that come up). --Dave Messina 17:43, 4 May 2006 (EDT)

The interface is now ready in here. I've made the suggested changes. Now I'm working on setting it up for browsing different packages and their releases. -- Mauricio 22:17, 13 May 2006 (EDT)

relative URLs

Great. BTW you can get your relative or absolute through CGI pretty easily (thanks Lincoln) so it doesn't have to be hardcoded to the cgi script name. You probably want -absolute or -relative for this example.

    OBTAINING THE SCRIPT'S URL

          $full_url      = $query->url();
          $full_url      = $query->url(-full=>1);  #alternative syntax
          $relative_url  = $query->url(-relative=>1);
          $absolute_url  = $query->url(-absolute=>1);
          $url_with_path = $query->url(-path_info=>1);
          $url_with_path_and_query = $query->url(-path_info=>1,-query=>1);
          $netloc        = $query->url(-base => 1);

      url() returns the script's URL in a variety of formats.  Called without
      any arguments, it returns the full form of the URL, including host name
      and port number

          http://your.host.com/path/to/script.cgi

      You can modify this format with the following named arguments:

      -absolute
          If true, produce an absolute URL, e.g.

              /path/to/script.cgi

      -relative
          Produce a relative URL.  This is useful if you want to reinvoke
          your script with different parameters. For example:

              script.cgi

      -full
          Produce the full URL, exactly as if called without any arguments.
          This overrides the -relative and -absolute arguments.

      -path (-path_info)
          Append the additional path information to the URL.  This can be
          combined with -full, -absolute or -relative.  -path_info is pro-
          vided as a synonym.

      -query (-query_string)
          Append the query string to the URL.  This can be combined with
          -full, -absolute or -relative.  -query_string is provided as a syn-
          onym.

      -base
          Generate just the protocol and net location, as in
          http://www.foo.com:8000

--jason stajich 09:22, 5 May 2006 (EDT)

Personal tools
Namespaces
Variants
Actions
Main Links
documentation
community
development
Toolbox