* [uml-devel] URL parsing bug in Slim/Utils/Misc.pm
@ 2004-11-21 15:52 Lars Kellogg-Stedman
0 siblings, 0 replies; only message in thread
From: Lars Kellogg-Stedman @ 2004-11-21 15:52 UTC (permalink / raw)
To: user-mode-linux-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-21 15:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-21 15:52 [uml-devel] URL parsing bug in Slim/Utils/Misc.pm Lars Kellogg-Stedman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox