Bug In Links.js.php »  Show posts from    to     

Icy Phoenix


Old Bugs - Bug In Links.js.php



Xusqui [ Thu 14 Sep, 2006 01:11 ]
Post subject: Bug In Links.js.php
hile, neighbours and friends...

I've realized that if the name of a defined link has an apostrophe in it (like in Lilja's Library) The html file generated by the liks.js.php file is corrupted, as this program doesn't use stripslashes function...

To fix it:

Open links.js.php

Find
Code: [Hide] [Select]
$links_logo .= (''<a href="' . append_sid("links.$phpEx?action=go&link_id=" . $row['link_id']) . '" target="_blank"><img src="' . $row['link_logo_src'] . '" alt="' . $row['link_title'] . '" width="' . $site_logo_width . '" height="' . $site_logo_height . '" border="0" hspace="1" /></a>',' . "n");


Replace with
Code: [Hide] [Select]
$link_title == stripslashes ($row[link_title]);
$links_logo .= (''<a href="' . append_sid("links.$phpEx?action=go&link_id=" . $row['link_id']) . '" target="_blank"><img src="' . $row['link_logo_src'] . '" alt="' . $link_title . '" width="' . $site_logo_width . '" height="' . $site_logo_height . '" border="0" hspace="1" /></a>',' . "n");


That's the way I fixed in my forum. Don't know if it's a good solution, but it works, so I would like to know the opinion of an expert in php programming to see if there's any better way to do that!

Greetz!!


Mighty Gorgon [ Thu 14 Sep, 2006 10:28 ]
Post subject: Re: Bug In Links.js.php
Thank you, I've fixed it.




Powered by Icy Phoenix