mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user