[Solved]: html syntax errors [Solved]: html syntax errors
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: html syntax errors

Started by coopersita, August 20, 2004, 12:18:59 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

coopersita

I've found some html syntax errors I've been trying to fix, but I just can't find where to fix them:

1- the url on  links on the breadcrum are not quoted (eg <a href=index.php>Home</a> instead of <a href="index.php">Home</a>)

2- thumbnail images have an extra " after class="images" and before height: <img src="albums/userpics/10001/thumb_1.jpg" class="image" " height="100" border="0" alt="...>

Does anyone know where to change that?

Thanks

Joachim Müller

edit include/functionsinc.php, find$breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';and replace with$breadcrumb = '<a href="index.php">'.$lang_list_categories['home'].'</a>';
Then find$link = "<a href=index.php?cat={$category[0]}>{$category[1]}</a>";and replace with$link = "<a href=\"index.php?cat={$category[0]}\">{$category[1]}</a>";
Next, find$breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';and replace with$breadcrumb = '<a href="index.php">'.$lang_list_categories['home'].'</a>';
After that, find$link = "<a href=thumbnails.php?album=".$CURRENT_ALBUM_DATA['aid'].">".$CURRENT_ALBUM_DATA['title']."</a>";and replace with$link = "<a href=\"thumbnails.php?album=".$CURRENT_ALBUM_DATA['aid']."\">".$CURRENT_ALBUM_DATA['title']."</a>";

To fix the surplus quote, find$image_size['geom'] = '" height="'.$image_size['height'].'"';and replace with$image_size['geom'] = ' height="'.$image_size['height'].'"';

@devs: fixed this in stable branch of the cvs, the devel branch already had the fix

GauGau

coopersita

Thanks GauGau,

As usually, it worked like a charm!