Advanced search  


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.

Pages: [1]   Go Down

Author Topic: [FIXED] Keyword search link.  (Read 4653 times)

0 Members and 1 Guest are viewing this topic.


  • Translator
  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
[FIXED] Keyword search link.
« on: November 06, 2003, 05:36:38 am »

File displayimage.php line 258
Code: [Select]
               $info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"'.$CPG_URL.'&file=thumbnails&album=search&search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
give this link
Code: [Select]
<a href="'.modules.php?name=coppermine.'&file=thumbnails&album=search&search=keyword1">keyword1</a>
This code works for me:
Code: [Select]
               $info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"$CPG_URL&file=thumbnails&album=search&search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
Pages: [1]   Go Up

Page created in 0.022 seconds with 18 queries.