Advanced search  

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]

Pages: [1]   Go Down

Author Topic: BBCode URL not working on the thumbnail view  (Read 9875 times)

0 Members and 1 Guest are viewing this topic.

jsivins

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
BBCode URL not working on the thumbnail view
« on: May 14, 2006, 07:13:36 pm »

One of the sites I maintain with CPG 1.4.5 lost the BBCode to "hot link".. Anyone know how to reactivate them in the thumbnail view?? They work fine when bring up the full image.. Any help soon would be grateful..
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: BBCode URL not working on the thumbnail view
« Reply #1 on: May 14, 2006, 10:59:01 pm »

I don't understand a word. Post a link to the page in question and (if needed) a non-admin test user account.
Logged

jsivins

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: BBCode URL not working on the thumbnail view
« Reply #2 on: May 16, 2006, 05:05:05 am »

visit http://www.allornothingtattoo.com/gallery/ and if you go to the album thumbnails view, the BBCode of URL is no longer active, but checking the settings BBCode is enabled. You can see that the BBCode works when you click to see the full image..
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: BBCode URL not working on the thumbnail view
« Reply #3 on: May 16, 2006, 05:23:31 am »

In include/functions.inc.php

FIND:
Code: [Select]
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".strip_tags(bb_decode($row['caption']))."</span>" : '';
REPLACE with:
Code: [Select]
            $caption .= $row['caption'] ? "<span class=\"thumb_caption\">".bb_decode(process_smilies($row['caption']))."</span>" : '';
@devs: I guess I've encountered and answered this question before because I have the above code in my own installation, but forgot why I had implemented it. Is there a reason why strip_tags() was used on the caption?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: BBCode URL not working on the thumbnail view
« Reply #4 on: May 16, 2006, 08:48:10 am »

none that I'm aware of.
Logged

jsivins

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: BBCode URL not working on the thumbnail view
« Reply #5 on: May 16, 2006, 03:55:20 pm »

That worked perfectly..  ;D

Thanks for the assist.. I can to the HTML stuff now.. LOL
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: BBCode URL not working on the thumbnail view
« Reply #6 on: May 16, 2006, 05:47:51 pm »

none that I'm aware of.
Should the code in svn be updated with this change?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: BBCode URL not working on the thumbnail view
« Reply #7 on: May 17, 2006, 12:43:34 am »

hm, I'm not sure - this might have a security impact that we're not aware of right now. Could you please check the commit history of the file and check when the line in question has been changed and what the commit comment was? I'm not 100% sure that we're not going to re-open a security vulnerability there.
Logged

Nibbler

  • Guest
Re: BBCode URL not working on the thumbnail view
« Reply #8 on: May 17, 2006, 01:35:39 pm »

It's not very enlightening

Quote
------------------------------------------------------------------------
r2427 | donnoman | 2005-08-07 23:55:48 +0200 (Sun, 07 Aug 2005) | 2 lines

Added strip_tags to caption_in_thumbview

------------------------------------------------------------------------
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: BBCode URL not working on the thumbnail view
« Reply #9 on: May 17, 2006, 01:40:13 pm »

Sent Donnoman a PM, asking him to take a look into this thread. Thanks for looking this up.

Joachim
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: BBCode URL not working on the thumbnail view
« Reply #10 on: May 17, 2006, 04:48:53 pm »

I searched the forums and found where donnoman talked about the code change: http://forum.coppermine-gallery.net/index.php?topic=15639.msg72916#msg72916

So it seems to be for security reasons, due to user-contributed comments.

Thanks for finding that entry, Nibbler. I looked at the svn log but didn't see anything helpful.
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: BBCode URL not working on the thumbnail view
« Reply #11 on: June 25, 2006, 04:54:05 pm »

Sorry Gaugau, for some reason I missed your PM, however the linked thread did describe why I did it.

If y'all don't think theres a problem showing the bb_decoded items then you can commit that change. I just couldn't bring myself to open it up; my paranoia got the better of me.
Logged

Ardath Rekha

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: BBCode URL not working on the thumbnail view
« Reply #12 on: August 29, 2006, 01:22:53 am »

Could that maybe be an option in the Config menu, whether to allow or disallow it?  Several of my older galleries, that I'm upgrading, rely very heavily on special formatting and links in the thumbnail views. I was tearing my hair out trying to figure out why all of my formatting had stopped working until I found this thread.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: BBCode URL not working on the thumbnail view
« Reply #13 on: August 29, 2006, 08:04:46 am »

Did you read the thread Thu refered to? Do you have cpg1.4.9? Post a link to your coppermine-driven gallery.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.