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, 51 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 - Using the word "script" in a block [ ]
 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
seanhk
Nuke Cadet
Nuke Cadet


Joined: Jul 31, 2003
Posts: 9


PostPosted: Sat Aug 02, 2003 4:03 pm Reply with quoteBack to top

Sometime ago I edited something so that nuke didnt magically ban the word "script"

Since upgrading however the chanage I made is gone and now I cannot edit existing block with the word "script" in, nor can I add any new blocks using the word "script"

Thing is I cannot for the life of me remember how I did it or where I found the original fix.

Can anyone help ?

Thanks

Sean
Find all posts by seanhkView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sat Aug 02, 2003 4:23 pm Reply with quoteBack to top

Open mainfile.php and change:

Code:
foreach ($_POST as $secvalue) {
    if (eregi("<[^>]*script*\"?[^>]*>", $secvalue)) {
        Header("Location: index.php");
        die();
    }
}

to:
Code:
foreach ($_POST as $secvalue) {
    if (eregi("<[^>]script*\"?[^>]*>", $secvalue)) {
        Header("Location: index.php");
        die();
    }
}

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sat Aug 02, 2003 4:24 pm Reply with quoteBack to top

If you still have problems remove the other * from script*

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
seanhk
Nuke Cadet
Nuke Cadet


Joined: Jul 31, 2003
Posts: 9


PostPosted: Sat Aug 02, 2003 5:41 pm Reply with quoteBack to top

chatserv wrote:
If you still have problems remove the other * from script*


Hi Chatserv,

That looks like the solution I used last time, but I've just tried both methods and still cannot either edit or create a new block with a url containing "script"

Can you think of anything else ?

If I were to remove that snippet of code, from where to where in the code would I make the cut ?

Thanks for your help,

Sean
Find all posts by seanhkView user's profileSend private message
seanhk
Nuke Cadet
Nuke Cadet


Joined: Jul 31, 2003
Posts: 9


PostPosted: Sat Aug 02, 2003 5:52 pm Reply with quoteBack to top

Thanks to Chatserv for pointing me in the right direction, I have fixed the problem.

I deleted the code he indicated in his post and everything is now working fine again.

For anyone else that want to do this, back up your mainfile.php and then remove

this

{

foreach ($_POST as $secvalue) {
if (eregi("<[^>]script*\"?[^>]*>", $secvalue)) {
Header("Location: index.php");
die();
}


Hope thats useful to someone Smile

Sean
Find all posts by seanhkView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Sat Aug 02, 2003 7:07 pm Reply with quoteBack to top

Of course you should be aware that removing that code opens your site to possible attacks

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
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.190 Seconds - 156 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::