4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: brice626 on April 30, 2006, 01:46:46 AM

Title: HTML in image description stopped working after upgrade to 1.7.2
Post by: brice626 on April 30, 2006, 01:46:46 AM
Hi there,

I updated from 1.7 to 1.7.2 containing the latest security fix -- after doing this, the HTML in the description field stopped working (example: http://www.benjaminbrice.com/forimages/details.php?image_id=864)

Any idea why?
Title: Re: HTML in image description stopped working after upgrade to 1.7.2
Post by: V@no on April 30, 2006, 01:59:49 AM
the HTML in the description field stopped working
"stoped working" is a very poor description of the problem. visiting the site - I had no idea what I'm supposed to look at.
So, please take a few minutes of your time and describe IN DETAILS of what supposed to happend and what actualy happening.
Title: Re: HTML in image description stopped working after upgrade to 1.7.2
Post by: brice626 on April 30, 2006, 02:01:08 AM
The link should take you to a page where in the description field, the raw HTML code is displayed.

Previous to the upgrade, the HTML "performed its function" - in this case, displaying a smiley-face image.

Edit: Earlier I also posted in this thread as I thought you might be talking about the problem I'm experiencing: http://www.4homepages.de/forum/index.php?topic=12720.15
Title: Re: HTML in image description stopped working after upgrade to 1.7.2
Post by: brice626 on May 01, 2006, 03:53:31 PM
Any ideas? Sorry to bug :(
Title: Re: HTML in image description stopped working after upgrade to 1.7.2
Post by: V@no on May 02, 2006, 05:22:59 AM
I'd not suggest allow HTML anywhere where regular member can add their stuff...
anyways in includes/functions.php find:
Code: [Select]
  $description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 0) : REPLACE_EMPTY;
Replace 0 with 1
Title: Re: HTML in image description stopped working after upgrade to 1.7.2
Post by: unifem on May 02, 2006, 05:37:57 PM
I had the same problem, and V@no's solution works. Thank you, V@no.

But I just wanted to suggest that maybe this could be an option in the admin panel -- i.e., a checkbox for "Allow HTML in description? Yes/No."

Regards.
Title: Re: HTML in image description stopped working after upgrade to 1.7.2
Post by: brice626 on May 02, 2006, 06:09:08 PM
Worked for me too. Thanks V@no!

I'm the only user who uploads but I appreciate the security concern as well. Thanks again.
Title: Re: HTML in image description stopped working after upgrade to 1.7.2
Post by: Gwydion on July 16, 2006, 01:56:00 PM
I had the same problem. It confused me quite some time that in the cp at descriptions it said "html allowed" while it clearly was not. IMHO that's something that should be corrected in upcoming releases.