From: Lars Kellogg-Stedman <lars@oddbit.com>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] URL parsing bug in Slim/Utils/Misc.pm
Date: Sun, 21 Nov 2004 10:52:52 -0500 [thread overview]
Message-ID: <lars-EEE351.10525221112004@sea.gmane.org> (raw)
I proxy access to my slimserver management interface via an SSL proxy,
and at some revision of the slimserver software I was no longer able to
access the server settings (I received a 403 error).
I've tracked this down to the crackURL function in Slim/Utils/Misc.pm.
It matches URLs using the string:
$string =~ m|http://(?:([^\@:]+):?([^\@]*)\@)?([^:/]+):*(\d*)(\S*)|i;
When crackURL sees an https:// URL, it returns an empty $host and
default $port to the caller -- which, for example, makes the referrer
check in processHTTP fail. Making a two character change to $string
makes it work just fine with https:// URLs:
$string =~ m|https?://(?:([^\@:]+):?([^\@]*)\@)?([^:/]+):*(\d*)(\S*)|i;
-- Lars
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
reply other threads:[~2004-11-21 15:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lars-EEE351.10525221112004@sea.gmane.org \
--to=lars@oddbit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox