minznerjosh / vastacular

Parses VAST XML.
MIT License
6 stars 7 forks source link

avoid to load base url if wrapper.vastAdTagURI is empty #17

Open atghw opened 6 years ago

atghw commented 6 years ago

When a VAST wrapper is served with an empty vastAdTagURI, i.e.:

<VAST version="2.0">
 <Ad id="nodelivery">
  <Wrapper>
   <AdSystem>Any</AdSystem>
   <VASTAdTagURI></VASTAdTagURI>
  </Wrapper>
 </Ad>
</VAST>

the base URL of the webpage is loaded instead. This patch could probably fix it - maybe the throw has to be catched somewhere ... otherwise it will be climb up into the users code.