YouTube crashed? Or the problem of one percent



    The second day there are problems watching videos on YouTube.
    News aggregators have dubbed this a “massive glitch” - YouTube’s massive glitch .

    Some speculate that this all-seeing Roskomnadzor blocked something there and didn’t look at our beloved cats anymore :)

    It became interesting (moreover, the problem was observed yesterday). I decided to dig a little.

    Everything turned out to be simple - the percentage problem . Yes, exactly one percent does not allow us to watch our favorite vidosiki.

    An advertisement is inserted in front of some videos. And one such movie (at least) kills the YouTube player.

    How did you find out by minified code :

    function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
    

    - each URL (maybe not everyone, but partly for sure) is processed by the standard window.decodeURI function .

    She does not digest the percentage at the end (20%). Namely, url processing

    домен_одного_ритейлера/%D0%9F%D0%BE%D0%BB%D1%83%D1%87%D0%B8%D1%82%D1%8C_CashBack_20%

    leads to a crash with the error "URIError: malformed URI sequence".

    It is solved simply - an additional check or cutting out interest.

    Waiting for a fix from Google!

    Also popular now: