Fix for potential XSS attacks.
This commit is contained in:
parent
f45966d449
commit
01acf79436
1 changed files with 2 additions and 2 deletions
|
@ -33,7 +33,7 @@ import com.grack.nanojson.JsonObject;
|
||||||
import com.grack.nanojson.JsonParser;
|
import com.grack.nanojson.JsonParser;
|
||||||
import com.grack.nanojson.JsonParserException;
|
import com.grack.nanojson.JsonParserException;
|
||||||
import com.grack.nanojson.JsonWriter;
|
import com.grack.nanojson.JsonWriter;
|
||||||
|
import org.jsoup.nodes.Entities;
|
||||||
import org.schabi.newpipe.extractor.MetaInfo;
|
import org.schabi.newpipe.extractor.MetaInfo;
|
||||||
import org.schabi.newpipe.extractor.downloader.Response;
|
import org.schabi.newpipe.extractor.downloader.Response;
|
||||||
import org.schabi.newpipe.extractor.exceptions.AccountTerminatedException;
|
import org.schabi.newpipe.extractor.exceptions.AccountTerminatedException;
|
||||||
|
@ -967,7 +967,7 @@ public final class YoutubeParsingHelper {
|
||||||
textBuilder.append("<s>");
|
textBuilder.append("<s>");
|
||||||
}
|
}
|
||||||
|
|
||||||
textBuilder.append(text);
|
textBuilder.append(Entities.escape(text));
|
||||||
|
|
||||||
if (strikethrough) {
|
if (strikethrough) {
|
||||||
textBuilder.append("</s>");
|
textBuilder.append("</s>");
|
||||||
|
|
Loading…
Reference in a new issue