mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: Prevent frozen string error in import scripts (#30325)
Co-authored-by: Selase Krakani <849886+s3lase@users.noreply.github.com>
This commit is contained in:
@ -444,7 +444,7 @@ class ImportScripts::Base
|
||||
else
|
||||
# Basic massaging on the category name
|
||||
params[:name] = "Blank" if params[:name].blank?
|
||||
params[:name].strip!
|
||||
params[:name] = params[:name].strip
|
||||
params[:name] = params[:name][0..49]
|
||||
|
||||
# make sure categories don't go more than 2 levels deep
|
||||
|
Reference in New Issue
Block a user