nicoseijas / php-oembed Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/php-oembed
Automatically exported from code.google.com/p/php-oembed
What steps will reproduce the problem?
1. Enter a URL with embedding disabled
(http://www.youtube.com/watch?v=yh5ZS5N51ug)
2. Script crashes in YouTubeProvider.class.php when trying to set
$med_content_url
What is the expected output? What do you see instead?
Script should return gracefully but with no data
What version of the product are you using? On what operating system?
PHP 5 Apache 2
Please provide any additional information below.
I have gotten around this by checking the length of
$xml->getElementsByTagNameNS("http://search.yahoo.com/mrss/","content");
before proceeding, and if there is no length throwing an exception.
This is a different issue, but please note that also the Exception404 class
is not complete as it does not pass on its parameters to the base exception
class in the constructor, and also there is no toString function
implemented so you have an undefined function in your sample when you
attempt to catch the exceptino and call toString.
Original issue reported on code.google.com by [email protected]
on 3 Aug 2008 at 3:56
What steps will reproduce the problem?
1. Reference YouTube video, e.g.
http://www.youtube.com/oembed?maxwidth=500&maxheight=600&url=http://www.youtube.
com/watch%3Fv%3DulcgFppkbLU
What is the expected output? What do you see instead?
Expect valid HTML in the "html" field, but it contains invalid </param> and
</embed> tags.
What version of the product are you using? On what operating system?
N/A
Please provide any additional information below.
The code is clearly generated in YouTubeProvider.class.php in the function
YouTubeProvider::getEmbed() at "$myEmbed->html=..."
(There might be additional places)
cf.
PARAM: http://www.w3.org/TR/html401/struct/objects.html#h-13.3.2
EMBED http://dev.w3.org/html5/spec/Overview.html#elements-0
“Void elements only have a start tag; end tags must not be specified for void
elements.”
Reported to Google here:
http://code.google.com/p/gdata-issues/issues/detail?id=2346
Original issue reported on code.google.com by [email protected]
on 6 Oct 2010 at 11:36
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.