unescape content sent in url
This commit is contained in:
parent
c041451360
commit
7ed8e02516
@ -1,5 +1,6 @@
|
||||
import Application from require "lapis"
|
||||
import assert_valid from require "lapis.validate"
|
||||
import unescape from require "lapis.util"
|
||||
|
||||
import APIKeys, Users, Tasks from require "models"
|
||||
import locate from require "locator"
|
||||
@ -9,7 +10,7 @@ import api_request, abort, assert_model from locate "helpers.api"
|
||||
|
||||
get_task = =>
|
||||
unless @params.content or tonumber @params.id
|
||||
@params.content = @params.id
|
||||
@params.content = unescape(@params.id)
|
||||
@params.id = nil
|
||||
if @params.id
|
||||
assert_valid @params, {
|
||||
|
Loading…
Reference in New Issue
Block a user