NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·PHPNuke 8 security worries
·PHP-Nuke SQL Injection Vulnerability Fix
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: tones
Today: 1
Yesterday: 2
Overall: 15105

Visitation:
Guests: 551
Members: 0
Total: 551


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Game Quest Online - Games and more!
Game Quest Online - Games and more!

NukeResources :: View topic - 7.6 patched is adding / everytime i use ' how do i fix it?
NukeResources Forum Index

NukeResources Forum Index -> Bug Reports -> 7.6 patched is adding / everytime i use ' how do i fix it?
Post new topic  Reply to topic    View previous topic :: View next topic 
7.6 patched is adding / everytime i use ' how do i fix it?
PostPosted: Tue Jul 11, 2006 10:21 am Reply with quote
plasma
Resource Seeker
Resource Seeker
 
Joined: May 21, 2004
Posts: 7




I'm running 7.6 patched, and when I add a new story, if i typed this word: don't it would add it as don/'t

the word does't really matter, it's any word that has a ' in it. It's only on the main pages Stories/News. it doesn't do that in the forums.

how the heck would I fix that?

thx for any help.
View user's profile Send private message
PostPosted: Tue Jul 11, 2006 4:13 pm Reply with quote
alexlee382
Resource Seeker
Resource Seeker
 
Joined: Jul 11, 2006
Posts: 3




i get this problem too. anytime i use a single quote or double quote in an article, it will add \ before it and ruin all my html and links. i've tried using the str_replace in the themes.php fix that i found on another site but that did not help at all.
View user's profile Send private message
PostPosted: Tue Jul 11, 2006 10:21 pm Reply with quote
darklord
Resourceful
Resourceful
 
Joined: Feb 25, 2006
Posts: 210




Php in itself will addslashes to everyquote inputed before it is displayed, a stripslashes function is required.

I believe this has been updated with patch 3.2b

_________________

for those who STAND shall NEVER fall and those who fall shall rise once more...never give up the end is just another beginning.
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
PostPosted: Wed Jul 12, 2006 12:09 am Reply with quote
alexlee382
Resource Seeker
Resource Seeker
 
Joined: Jul 11, 2006
Posts: 3




i did a clean install of 7.6 with 3.2B and still have this problem. where would i use stripslashes? if you could lead me in the right direction it'd be appreciated.
View user's profile Send private message
PostPosted: Wed Jul 12, 2006 8:04 am Reply with quote
plasma
Resource Seeker
Resource Seeker
 
Joined: May 21, 2004
Posts: 7




mine is a fresh install as well. i downloaded 7.6 from this site 3 days ago.

i'm also seeing another error. when i add links to news stories, it's adding slashes.

example:

if I type this:

Code:
this is a  <a href="http://www.nukeresources.com"></a>


it turn it to this:

Code:
this is a  <a href="\http://www.nukeresources.com\"></a>
View user's profile Send private message
PostPosted: Wed Jul 12, 2006 7:30 pm Reply with quote
alexlee382
Resource Seeker
Resource Seeker
 
Joined: Jul 11, 2006
Posts: 3




figured out the fix.

in file /modules/news/admin/index.php

comment out these lines in the poststory function(lines 1072-1074)

Code:


$subject = addslashes(check_words(check_html($subject, "nohtml")));
$hometext = addslashes(check_words(check_html($hometext, "")));
$bodytext = addslashes(check_words(check_html($bodytext, "")));



and comment out these lines in the changestory function(lines 1402-1404)

Code:


$subject = addslashes(check_words(check_html($subject, "nohtml")));
$hometext = addslashes(check_words(check_html($hometext, "")));
$bodytext = addslashes(check_words(check_html($bodytext, "")));



credit goes to my buddy josh lai who can be reached at joshuajlai AT hotmail dot com
View user's profile Send private message
PostPosted: Thu Jul 13, 2006 2:23 am Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




For security reasons, you are better to keep those lines in and just remove the addslashes() function

Code:

$subject = check_words(check_html($subject, "nohtml"));
$hometext = check_words(check_html($hometext, ""));
$bodytext = check_words(check_html($bodytext, ""));

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
Whats the addslashes for anyway?
PostPosted: Thu Jul 20, 2006 2:50 am Reply with quote
Dark_Dragon
Resource Newbie
Resource Newbie
 
Joined: May 19, 2006
Posts: 45




What use is the addslashes entery anyway? because I have the same problem and I also noticed there are several addslashes in the Index.php not just 3 or 4. What happens if I remove them all?
View user's profile Send private message Visit poster's website
PostPosted: Fri Jul 21, 2006 5:15 pm Reply with quote
Evaders99
Resource Master
Resource Master
 
Joined: May 25, 2004
Posts: 1785




In the condition which your server has magic_quotes_gpc on, it will automatically do an addslashes to every input. So addslashes shouldn't be needed again. However, phpNuke frequently uses stripslashes and addslashes incorrectly, so it is almost safer just to use addslashes everywhere.

I'm working on fixing this system wide. If you want to test my Patched 3.2 compatible files, register on my site and tell me your username. I will give you access to the test sites and downloads. http://evaders.swrebellion.com

_________________
- Star Wars Rebellion Network - Evaders Squadron Coding -

Need help? Nuke Patched Core, Coding Services, Webmaster Services
View user's profile Send private message Visit poster's website AIM Address
Made Account
PostPosted: Sat Jul 22, 2006 7:32 am Reply with quote
Dark_Dragon
Resource Newbie
Resource Newbie
 
Joined: May 19, 2006
Posts: 45




Hi Evaders.....I made an account at your site the name is the same as on here:D
View user's profile Send private message Visit poster's website
7.6 patched is adding / everytime i use ' how do i fix it?
 NukeResources Forum Index -> Bug Reports
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 176 unique hit(s) in the past 24 hours.
Forums ©
Download the Best Archiver in the World


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.28 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::