--- parser3/src/classes/file.C 2026/11/03 16:04:19 1.308 +++ parser3/src/classes/file.C 2026/11/27 21:35:11 1.310 @@ -25,7 +25,7 @@ #include "pa_vregex.h" #include "pa_version.h" -volatile const char * IDENT_FILE_C="$Id: file.C,v 1.308 2026/11/03 16:04:19 moko Exp $"; +volatile const char * IDENT_FILE_C="$Id: file.C,v 1.310 2026/11/27 21:35:11 moko Exp $"; // defines @@ -49,6 +49,7 @@ public: File_list_table_template_columns() { *this+=new String("name"); *this+=new String("dir"); + *this+=new String("symlink"); *this+=new String("size"); *this+=new String("cdate"); *this+=new String("mdate"); @@ -141,7 +142,7 @@ static void _save(Request& r, MethodPara if(HashStringValue* options=params.as_hash(2)){ int valid_options=0; if(Value* vcharset_name=options->get(PA_CHARSET_NAME)){ - asked_charset=&pa_charsets.get(vcharset_name->as_string()); + asked_charset=&pa_charsets.get_file_charset(vcharset_name->as_string()); valid_options++; } if(Value* vappend=options->get(MODE_APPEND)){ @@ -790,6 +791,7 @@ static void _list(Request& r, MethodPara Table::element_type row(new ArrayString); *row+=new String(pa_strdup(file_name_cstr, file_name_size), String::L_TAINTED); *row+=new String(ffblk.is_dir(stat) ? "1" : "0", String::L_CLEAN); + *row+=new String(ffblk.is_symlink() ? "1" : "0", String::L_CLEAN); if(stat) { *row+=VDouble(ffblk.size()).get_string(); *row+=new String(pa_uitoa(ffblk.c_timestamp()), String::L_CLEAN);