SourceForge logo
SourceForge logo
Menu

phpwiki-checkins

From: Geoffrey T. D. <da...@us...> - 2001年02月15日 19:31:52
Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv14520/lib
Modified Files:
	main.php 
Log Message:
If we're expecting PATH_INFO, and don't get it, redirect to REQUEST_URI
with a trailing '/' added. This is to make the index.php script look
more like a 'directory', for consistencies sake.
Also apparently $PATH_INFO gets magic-quoted, so un-magic that.
Index: main.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/main.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** main.php	2001年02月14日 22:02:05	1.3
--- main.php	2001年02月15日 19:32:34	1.4
***************
*** 5,8 ****
--- 5,14 ----
 include "lib/userauth.php";
 
+ if (USE_PATH_INFO && !isset($PATH_INFO))
+ {
+ header("Location: " . SERVER_URL . $REQUEST_URI);
+ exit;
+ }
+ 
 function DeducePagename () 
 {
***************
*** 12,18 ****
 return fix_magic_quotes_gpc($pagename);
 
! if (USE_PATH_INFO)
 if (ereg('^' . PATH_INFO_PREFIX . '(..*)$', $PATH_INFO, $m))
 	 return $m[1];
 
 return gettext("FrontPage");
--- 18,27 ----
 return fix_magic_quotes_gpc($pagename);
 
! if (USE_PATH_INFO && isset($PATH_INFO))
! {
! fix_magic_quotes_gpc($PATH_INFO);
 if (ereg('^' . PATH_INFO_PREFIX . '(..*)$', $PATH_INFO, $m))
 	 return $m[1];
+ }
 
 return gettext("FrontPage");
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /