Dear all,
we are using the pwg.categories.add call to create new categories from Shotwell, but I think it seems that piwigo strip html markup from the comment during creation, although something similar does not happen when one uploads photos with comments containing html markup.
I consider this a bug, or is there a way around it?
Thanks a lot
Norbert
Offline
Hi norbusan,
In [Subversion] r15850 mistic100 has added:
if ( !empty($params['comment']) ) { $updates['comment'] = strip_tags($params['comment']); }
while in admin/cat_modify.php I had coded (8 years ago in [Subversion] r825):
'comment' => $conf['allow_html_descriptions'] ? @$_POST['comment'] : strip_tags(@$_POST['comment']),
And $conf['allow_html_descriptions'] is true by default.
I notify mistic100 him to know why he forces the strip_tags function.
Offline
no particular reason, this can be changed
Offline
mistic100 wrote:
no particular reason, this can be changed
OK, I do for Piwigo 2.5
Offline
Offline
Offline
Hi Pierrick, hi Damien,
thanks for the messages and the fix, that is very much appreciated!
Norbert
(and Pierrick, thanks for your comment on my blog, next release of shotwell will be rather soon, so it will contain all of the improvements I submitted)
Offline
BTW, I confirm that the svn changeset applied to the latest release fixes the problem. I just made the same change in my installation, and created a new album with shotwell where a comment contains markup. Worked all nicely.
Thanks!
Norbert
Offline