Index: openacs-4/packages/acs-content-repository/tcl/content-item-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-content-repository/tcl/content-item-procs.tcl,v diff -u -N -r1.24.2.4 -r1.24.2.5 --- openacs-4/packages/acs-content-repository/tcl/content-item-procs.tcl 21 Apr 2017 14:53:08 -0000 1.24.2.4 +++ openacs-4/packages/acs-content-repository/tcl/content-item-procs.tcl 8 Jun 2017 16:42:26 -0000 1.24.2.5 @@ -853,8 +853,10 @@ } set existing_filenames [db_list get_parent_existing_filenames {}] - set filename [util_text_to_url \ - -text ${title} -existing_urls "$existing_filenames" -replacement "_"] + set filename [ad_sanitize_filename \ + -existing_names $existing_filenames \ + -collapse_spaces \ + -replace_with "_" $title] set revision_id [cr_import_content \ -storage_type "file" -title $title \