blocks.gif
 

Hauptmenü

 
blocks.gif
 

Community

 
blocks.gif
 

Sonstiges

 
blocks.gif
 

Flash Gallery

 
blocks.gif
 

News pragmamx.org

 
 
Fixes

7 Artikel (2 Seiten, 6 Artikel pro Seite)

zu Seite: 1 1 2
 


story.gif
URL's that end with trailing slash, like index.php/ wreck havoc in PHP Nuke
 
 
PHP Nuke

PHP Nuke
BobMarion posted on ravenphpscripts.com:

I got an email today asking me if there was a bug on my site. The person mistyped the url as http://www.nukescripts.net/index.php/ and it caused an interesting effect. The index page loaded but would not load any of the style of graphics it should have. I then tested that with /admin.php/ and it caused the same effect. While this is not an exploit it is very upsetting that it happens at all so here is the cure: Open your mainfile.php and put:

if($_SERVER['REQUEST_URI'] != "/" AND substr($_SERVER['REQUEST_URI'], -1) == "/") { header("Location: http://".$_SERVER['HTTP_HOST'].rtrim($_SERVER['REQUEST_URI'],'/'));
}

right after the opening < ?php.
If your running NukeSentinel™ place it above the NukeSentinel™ inclusion and after the < ?php .



If you use Apache and have access to either the httpd.conf file or the .htaccess file, you can use the following code at the server level:



RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^/(.*) $1



This fix brought to you by NukeScripts and Raven PHPScripts.

Veröffentlicht von Norbert am Donnerstag, 16. Dezember 2004
( Reads: 599 ) | ( mehr... | Druckbare Version  Diesen Artikel an einen Freund senden | Fixes | Punkte: 0)
 
 
 

 
7 Artikel (2 Seiten, 6 Artikel pro Seite)

zu Seite: 1 1 2
 


blocks.gif
 

Login

Benutzername:

Passwort:


 
blocks.gif
 

f1total

F1Total.com - Formel-1-Informationsdienst

 
blocks.gif
 

Vote for us


all-inkl.com webhosting

 
blocks.gif
 

Link Exchange

Link back to

FLASH-FOR-NUKE

FLASH-FOR-NUKE




nuke-theme.de

NukeCops.AT

codezwiz.com

RavenPHPScripts

EuroNuke

http://www.nukescripts.net

Vote for my Site@ by disipal.net

conrads-berlin.de

Phpnuke Database

Vote for my Site@ by Maty Scripts

nukecode

PHP-Nuke.org

www.my-tip.de

Vote for my Site@ www.phpnukedownloads.de

/www.kuimera.com

Vote for my Site@ am-nuke.net

Nuke Resources




 
blocks.gif
 

FFN Shopping

 
 

Seitenerstellung in 0.1179 Sekunden, mit 17 Datenbank-Abfragen

Alle Logos und Warenzeichen auf dieser Seite sind Eigentum der jeweiligen Besitzer und Lizenzhalter.
Im übrigen gilt Haftungsausschluss. Weitere Details finden Sie im Impressum.
Diese Webseite basiert auf pragmaMx 0.1.9, dieses CMS ist frei erhältlich.
wong folkd Linkarena oneview webnews Yigg BlinkList del.icio.us facebook Furl Google Yahoo

Bot-Trap Logo