Hi
ich habe das mal ans Coppermine Team weitergereicht:
Hi
long time to be here....
I can't answer on this thread:
http://coppermine-gallery.net/forum/index.php?topic=41681.0
In our board we have the same discussion and i'm searching for a solution before i find this thread here...
http://www.pragmamx.org/Forum-topic-21791.html
The setting 'Maximum length of a comment' is only effected in the max_length Attribut of the input tag. There is no check by saving the data in the database.
Here is my idea for a solution:
---------------------
file db_input.php
Coppermine version: 1.4.10
$Revision: 3275 $
$Author: gaugau $
$Date: 2006-09-03 12:10:47 +0200 (So, 03 Sep 2006) $
---------------------
in function check_comment() after this line
global $CONFIG, $lang_bad_words, $queries;
add the following code
// convert some entities
$str = str_replace(array('&', '"', '<', '>', ' ', '''), array('&', '"', '<', '>', ' ', "'"), $str);
// strip tags and cut to max allowed length
$str = trim(substr(strip_tags($str), 0, $CONFIG['max_com_size']));
// re convert some entities
$str = str_replace(array('"', '<', '>', "'"), array('"', '<', '>', '''), $str);
And a other question:
There is no effect for the setting 'Max number of lines in a comment'.
What was the original sense for this setting? Is it only to prepare the output, or maybe for the input field as textarea?
Oh Gott, verzeiht mir mein englisch....
(
http://coppermine-gallery.net/forum/index.php?topic=44398.0 den könnt ihr nicht sehen, weil im dev-Forum)
Anbei mal vorab die geänderte Datei für unsere Bridge 1.4.10.1