[Openupload-svn-update] SF.net SVN: openupload:[105] trunk/lib/general.inc.php
Status: Beta
Brought to you by:
tsdogs
|
From: <ts...@us...> - 2008-11-04 17:55:32
|
Revision: 105
http://openupload.svn.sourceforge.net/openupload/?rev=105&view=rev
Author: tsdogs
Date: 2008-11-04 17:55:26 +0000 (Tue, 04 Nov 2008)
Log Message:
-----------
remove leading slash from requested files from templates WWW_ROOT
Modified Paths:
--------------
trunk/lib/general.inc.php
Modified: trunk/lib/general.inc.php
===================================================================
--- trunk/lib/general.inc.php 2008-11-04 17:41:57 UTC (rev 104)
+++ trunk/lib/general.inc.php 2008-11-04 17:55:26 UTC (rev 105)
@@ -15,6 +15,10 @@
include ($CONFIG['INSTALL_ROOT'].'/templates/'.$CONFIG['site']['template'].'/init.inc.php');
}
+/* remove trailing slash from WWW_ROOT */
+if (strrpos($CONFIG['WWW_ROOT'],'/')===strlen($CONFIG['WWW_ROOT'])-1)
+ $CONFIG['WWW_ROOT']=substr($CONFIG['WWW_ROOT'],0,strlen($CONFIG['WWW_ROOT'])-1);
+
/*************************************************************************************
* GLOBAL FUNCTIONS *
*************************************************************************************/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|