From 53d57955d0bf28c994853fee47ebc9cef03e3f67 Mon Sep 17 00:00:00 2001 From: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Date: Tue, 5 Apr 2022 19:40:04 -0700 Subject: [PATCH] Removes unneeded sanitization (#65894) These were here because they used to be fed into html raw. Forunately because we have react now, I don't need to worry about the sanitization, and in fact the way we have it now leads to weird searching. This fixes that problem --- code/modules/library/lib_machines.dm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm index fdaa882f406..7e2053a2c26 100644 --- a/code/modules/library/lib_machines.dm +++ b/code/modules/library/lib_machines.dm @@ -83,7 +83,6 @@ switch(action) if("set_search_title") var/newtitle = params["title"] - newtitle = sanitize(newtitle) if(newtitle != title) params_changed = TRUE title = newtitle @@ -92,14 +91,12 @@ var/newcategory = params["category"] if(!(newcategory in SSlibrary.search_categories)) //Nice try newcategory = DEFAULT_SEARCH_CATAGORY - newcategory = sanitize(newcategory) if(newcategory != category) params_changed = TRUE category = newcategory return TRUE if("set_search_author") var/newauthor = params["author"] - newauthor = sanitize(newauthor) if(newauthor != author) params_changed = TRUE author = newauthor @@ -479,7 +476,6 @@ var/upload_category = params["category"] if(!(upload_category in SSlibrary.upload_categories)) //Nice try upload_category = DEFAULT_UPLOAD_CATAGORY - upload_category = sanitize(upload_category) INVOKE_ASYNC(src, .proc/upload_from_scanner, upload_category) return TRUE