fix title on outline generatation if it contains a ;

This commit is contained in:
Kevin Pham
2023-12-08 10:20:27 -06:00
parent 5bb6b872ba
commit 81c99821f0
3 changed files with 4 additions and 4 deletions

View File

@@ -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."

View File

@@ -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}"},
}, },
}, },
{ {

View File

@@ -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?