$OpenBSD: patch-gui_Player_cpp,v 1.1 2010/11/07 18:58:24 dcoppa Exp $

"base" parameter is always to be considered a directory.

--- gui/Player.cpp.orig	Sat Aug  7 11:50:00 2010
+++ gui/Player.cpp	Fri Nov  5 21:15:25 2010
@@ -314,9 +314,12 @@ Player::run(int argc, char* argv[], const std::string&
 
     // Parse player parameters. These are not passed to the SWF, but rather
     // control stage properties etc.
+    // NOTE: it is intentional to force a trailing slash to "base" argument
+    //       as it was tested that the "base" argument is always considered
+    //       a directory!
     Params::const_iterator it = _params.find("base");
     const URL baseURL = (it == _params.end()) ? _baseurl :
-                                               URL(it->second, _baseurl);
+                                               URL(it->second+"/", _baseurl);
     /// The RunResources should be populated before parsing.
     _runResources.reset(new RunResources(baseURL.str()));
 
