fix title on outline generatation if it contains a ;
This commit is contained in:
2
.github/workflows/build-css.yaml
vendored
2
.github/workflows/build-css.yaml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
name: Build Tailwind CSS
|
name: Build Tailwind CSS
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
-
|
-
|
||||||
name: Commit generated stylesheet
|
name: Commit generated stylesheet for handlers/styles.css
|
||||||
run: |
|
run: |
|
||||||
if git diff --quiet handlers/styles.css; then
|
if git diff --quiet handlers/styles.css; then
|
||||||
echo "No changes to commit."
|
echo "No changes to commit."
|
||||||
|
|||||||
@@ -485,7 +485,7 @@ var AllMods Modifiers = Modifiers{
|
|||||||
Description: "DeleteIncomingCookies prevents ALL cookies from being sent from the proxy server back down to the client.",
|
Description: "DeleteIncomingCookies prevents ALL cookies from being sent from the proxy server back down to the client.",
|
||||||
CodeEditLink: "https://github.com/everywall/ladder/edit/origin/proxy_v2/proxychain/responsemodifiers/modify_incoming_cookies.go",
|
CodeEditLink: "https://github.com/everywall/ladder/edit/origin/proxy_v2/proxychain/responsemodifiers/modify_incoming_cookies.go",
|
||||||
Params: []Param{
|
Params: []Param{
|
||||||
{Name: "_", Type: "&{Ellipsis:16319 Elt:string}"},
|
{Name: "_", Type: "&{Ellipsis:16342 Elt:string}"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -493,7 +493,7 @@ var AllMods Modifiers = Modifiers{
|
|||||||
Description: "DeleteIncomingCookiesExcept prevents non-whitelisted cookies from being sent from the proxy server to the client. Cookies whose names are in the whitelist are not removed.",
|
Description: "DeleteIncomingCookiesExcept prevents non-whitelisted cookies from being sent from the proxy server to the client. Cookies whose names are in the whitelist are not removed.",
|
||||||
CodeEditLink: "https://github.com/everywall/ladder/edit/origin/proxy_v2/proxychain/responsemodifiers/modify_incoming_cookies.go",
|
CodeEditLink: "https://github.com/everywall/ladder/edit/origin/proxy_v2/proxychain/responsemodifiers/modify_incoming_cookies.go",
|
||||||
Params: []Param{
|
Params: []Param{
|
||||||
{Name: "whitelist", Type: "&{Ellipsis:16864 Elt:string}"},
|
{Name: "whitelist", Type: "&{Ellipsis:16887 Elt:string}"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ func GenerateReadableOutline() proxychain.ResponseModification {
|
|||||||
"Success": true,
|
"Success": true,
|
||||||
"Image": extract.Metadata.Image,
|
"Image": extract.Metadata.Image,
|
||||||
"Description": extract.Metadata.Description,
|
"Description": extract.Metadata.Description,
|
||||||
"Sitename": extract.Metadata.Sitename,
|
"Sitename": strings.Split(extract.Metadata.Sitename, ";")[0],
|
||||||
"Hostname": extract.Metadata.Hostname,
|
"Hostname": extract.Metadata.Hostname,
|
||||||
"Url": "/" + chain.Request.URL.String(),
|
"Url": "/" + chain.Request.URL.String(),
|
||||||
"Title": extract.Metadata.Title, // todo: modify CreateReadableDocument so we don't have <h1> titles duplicated?
|
"Title": extract.Metadata.Title, // todo: modify CreateReadableDocument so we don't have <h1> titles duplicated?
|
||||||
|
|||||||
Reference in New Issue
Block a user