mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
remove base64 decode
This commit is contained in:
parent
ffba8f7c7c
commit
2c95e7d4a1
@ -94,7 +94,7 @@ function PostController:id(pid)
|
|||||||
return self:notfound("No post found")
|
return self:notfound("No post found")
|
||||||
end
|
end
|
||||||
data = data[1]
|
data = data[1]
|
||||||
data.rendered = bytes.__tostring(std.b64decode(data.rendered)):gsub("%%", "%%%%")
|
data.rendered = data.rendered:gsub("%%", "%%%%")
|
||||||
local a, b = data.rendered:find("<[Hh]1[^>]*>")
|
local a, b = data.rendered:find("<[Hh]1[^>]*>")
|
||||||
if a then
|
if a then
|
||||||
local c, d = data.rendered:find("</[Hh]1>")
|
local c, d = data.rendered:find("</[Hh]1>")
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<div class = "blogentry">
|
<div class = "blogentry">
|
||||||
<div class = "shortcontent">
|
<div class = "shortcontent">
|
||||||
<?lua
|
<?lua
|
||||||
local content = bytes.__tostring(std.b64decode(data.rendered)):gsub("%%","%%%%")
|
local content = data.rendered:gsub("%%","%%%%")
|
||||||
local r, s = content:find("(<hr/?>)")
|
local r, s = content:find("(<hr/?>)")
|
||||||
local title = nil
|
local title = nil
|
||||||
if r then
|
if r then
|
||||||
|
Loading…
Reference in New Issue
Block a user