projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
346aa86
)
tweeper.php: write the word "URL" in upper case
author
Antonio Ospite <ao2@ao2.it>
Tue, 17 May 2016 14:09:14 +0000
(16:09 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 08:55:09 +0000
(10:55 +0200)
tweeper.php
patch
|
blob
|
history
diff --git
a/tweeper.php
b/tweeper.php
index
5379be7
..
bfc07f2
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-129,7
+129,7
@@
class Tweeper {
"video/ogg",
);
"video/ogg",
);
- // The RSS specification says that the enclosure element
url
must be http.
+ // The RSS specification says that the enclosure element
URL
must be http.
// See http://sourceforge.net/p/feedvalidator/bugs/72/
$http_url = preg_replace("/^https/", "http", $url);
// See http://sourceforge.net/p/feedvalidator/bugs/72/
$http_url = preg_replace("/^https/", "http", $url);
@@
-298,7
+298,7
@@
class Tweeper {
public function tweep($src_url) {
$url = parse_url($src_url);
if (FALSE === $url || empty($url["host"])) {
public function tweep($src_url) {
$url = parse_url($src_url);
if (FALSE === $url || empty($url["host"])) {
- trigger_error("Invalid
url
: $src_url", E_USER_ERROR);
+ trigger_error("Invalid
URL
: $src_url", E_USER_ERROR);
return NULL;
}
return NULL;
}