Merge pull request #1005 from FireMasterK/fix-escaping-xss

Fix for potential XSS attacks and formatting issues
This commit is contained in:
Stypox 2023-01-02 15:06:17 +01:00 committed by GitHub
commit 991394b53a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ import com.grack.nanojson.JsonObject;
import com.grack.nanojson.JsonParser;
import com.grack.nanojson.JsonParserException;
import com.grack.nanojson.JsonWriter;
import org.jsoup.nodes.Entities;
import org.schabi.newpipe.extractor.MetaInfo;
import org.schabi.newpipe.extractor.downloader.Response;
import org.schabi.newpipe.extractor.exceptions.AccountTerminatedException;
@ -967,7 +967,7 @@ public final class YoutubeParsingHelper {
textBuilder.append("<s>");
}
textBuilder.append(text);
textBuilder.append(Entities.escape(text));
if (strikethrough) {
textBuilder.append("</s>");