PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Sat Jan 14, 2006 7:44 am Reply with quote Back to top

In weblinks - rate this site
I'm getting \' when it should just be '

it's ok in the weblinks home page
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Sat Jan 14, 2006 8:36 am Reply with quote Back to top

Interesting. I doubt Raven made any changes to that module, other than secure / patch it.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sat Jan 14, 2006 8:56 am Reply with quote Back to top

That is correct. I will put it on the list of things to check.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Apr 19, 2006 10:39 am Reply with quote Back to top

I have gone over and over this and I can't seem to find it. Can you detail exactly how to reproduce it and where it is exactly?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 3186
Location: near Albany NY

PostPosted: Wed Apr 19, 2006 3:23 pm Reply with quote Back to top

It took me about 10 tries but I finally duplicated the problem.

If you make the title of a link be say: MHCC Bike Club's then when you go to the "rate this site" link you will see MHCC Bike Club\'s.

You can see this on frank.ravenwebhosting.com if you don't want to duplicate it yourself. When you just look at the link in weblink it appears normal.

Actually this link should take you right there.

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
fkelly
Moderator


Joined: Aug 30, 2005
Posts: 3186
Location: near Albany NY

PostPosted: Wed Apr 19, 2006 3:46 pm Reply with quote Back to top

in the modules/weblinks/index.php I believe we might need a stripslashes.

Code:
function ratelink($lid, $user, $ttitle) {
    global $prefix, $cookie, $datetime, $module_name;
    include("header.php");
    menu(1);
    echo "<br>";
    OpenTable();
    $ttitle = stripslashes(htmlentities($ttitle));
    echo 'ttitle after first htmlentities '  . $ttitle . '<br>';
    $transfertitle = ereg_replace ("_", " ", $ttitle);
    $displaytitle = $transfertitle;
    if(isset($_SERVER['REMOTE_HOST'])) { $ip = $_SERVER['REMOTE_HOST'];}
    if (empty($ip)) {
       $ip = $_SERVER['REMOTE_ADDR'];
    }
        echo 'displaytitle before second htmlentities '  . $displaytitle . '<br>';
    echo "<b>".htmlentities($displaytitle)."</b>"


The code in the "official" version doesn't have the stripslashes before the htmlentities. After sticking the echoes in I determined that $ttitle is coming in as "MHCC bike club\s" and there is nothing to strip out the \.

On the other hand why not?

Code:
function ratelink($lid, $user, $ttitle) {
    global $prefix, $cookie, $datetime, $module_name;
    include("header.php");
    menu(1);
    echo "<br>";
    OpenTable();
    $ttitle = stripslashes(htmlentities(ereg_replace ("_", " ", $ttitle)));
    if(isset($_SERVER['REMOTE_HOST'])) { $ip = $_SERVER['REMOTE_HOST'];}
    if (empty($ip)) {
       $ip = $_SERVER['REMOTE_ADDR'];
    }
    echo "<b>".($ttitle)."</b>"
   ."<ul><font class=\"content\">"


Saves two (I think) redundant variable declarations and one htmlentities. I can't see where it has any negative effects.
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

View next topic
View previous 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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum