cvs: php-gtk-web /include cvs-auth.inc

[email protected] ("Steph Fox") Tue, 11 Jul 2006 01:10:49 -0000
Newsgroups php.gtk.webmaster
Message-ID <cvssfox1152580249@cvsserver>
sfox		Tue Jul 11 01:10:49 2006 UTC

  Modified files:              
    /php-gtk-web/include	cvs-auth.inc 
  Log:
  d'oh, referer has the full path of course...  not sure how useful this is going to be.
  
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/cvs-auth.inc?r1=1.9&r2=1.10&diff_format=u
Index: php-gtk-web/include/cvs-auth.inc
diff -u php-gtk-web/include/cvs-auth.inc:1.9 php-gtk-web/include/cvs-auth.inc:1.10
--- php-gtk-web/include/cvs-auth.inc:1.9	Mon Jul 10 23:04:00 2006
+++ php-gtk-web/include/cvs-auth.inc	Tue Jul 11 01:10:49 2006
@@ -1,5 +1,5 @@
 <?php
-/* $Id: cvs-auth.inc,v 1.9 2006/07/10 23:04:00 sfox Exp $ */
+/* $Id: cvs-auth.inc,v 1.10 2006/07/11 01:10:49 sfox Exp $ */
 require_once('config.inc');
 
 function get_auth($name, $pass, $connect = null) {
@@ -62,7 +62,7 @@
 			}
 		}
 	}
-	$ref = substr($_SERVER['HTTP_REFERER'], 0, strpos($_SERVER['HTTP_REFERER'], '.php') + 4);
+	$ref = substr($_SERVER['HTTP_REFERER'], 0, strrpos($_SERVER['HTTP_REFERER'], '.php') + 4);
 	header("Location: $ref");
 }