You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 128 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Problem with HTTP_HOST on some servers [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
xairho
Nuke Soldier
Nuke Soldier


Joined: Jan 17, 2006
Posts: 12


PostPosted: Tue Jan 24, 2006 8:58 am Reply with quoteBack to top

Some servers include the port number in $_SERVER["HTTP_HOST"], $_ENV["HTTP_HOST"] and so on. This causes a misinterpretation in mainfile.php, where it checks for REQUEST_METHODE == "POST" to protect from form posts from external pages and hacks.
The port number isnt transmitted in $_SERVER["HTTP_REFERER"], so it shows the error msg.
Better compare HTTP_REFERER with SERVER_NAME at this point!

Bugfix:

Open File "mainfile.php"

FIND:
Code:
if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {


REPLACE WITH:
Code:
if (!stripos_clone($_SERVER['HTTP_REFERER'], $_SERVER['SERVER_NAME'])) {


Save file "mainfile.php"

Xai Rho
Find all posts by xairhoView user's profileSend private message
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Wed Jan 25, 2006 10:35 am Reply with quoteBack to top

Good info..thanks for posting Very Happy

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView user's profileSend private messageVisit poster's website
xairho
Nuke Soldier
Nuke Soldier


Joined: Jan 17, 2006
Posts: 12


PostPosted: Wed Jan 25, 2006 7:13 pm Reply with quoteBack to top

You are welcome. I love the cops Wink
Find all posts by xairhoView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.451 Seconds - 208 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::