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
This commit is contained in:
LemonInTheDark
2022-04-05 19:40:04 -07:00
committed by GitHub
parent e76147bcb7
commit 53d57955d0
-4
View File
@@ -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