PHP 8.5.0 Released!

Voting

: min(two, nine)?
(Example: nine)

The Note You're Voting On

utilmind
12 years ago
parse_url doesn't works if the protocol doesn't specified. This seems like sandard, even the youtube doesn't gives the protocol name when generates code for embedding which have a look like "//youtube.com/etc".
So, to avoid bug, you must always check, whether the provided url has the protocol, and if not (starts with 2 slashes) -- add the "http:" prefix.

<< Back to user notes page

AltStyle によって変換されたページ (->オリジナル) /