787c6899d4db04b3e6cef9a02c6a2ff3d896ece3

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

rand-quote: update URL

Fixes #6949

Diff

 1diff --git a/plugins/rand-quote/rand-quote.plugin.zsh b/plugins/rand-quote/rand-quote.plugin.zsh
 2index 8f345d9aa1e04626c45195f07253ec2cccc5aba4..a64e9b4edc106126d165bf38e1c538b71cf81eea 100644
 3--- a/plugins/rand-quote/rand-quote.plugin.zsh
 4+++ b/plugins/rand-quote/rand-quote.plugin.zsh
 5@@ -1,4 +1,4 @@
 6-# Get a random quote fron the site http://www.quotationspage.com/random.php3
 7+# Get a random quote fron the site http://www.quotationspage.com/random.php
 8 # Created by Eduardo San Martin Morote aka Posva
 9 # http://posva.github.io
10 # Sun Jun 09 10:59:36 CEST 2013 
11@@ -13,7 +13,7 @@ END_COLOR="\e[m"
12 if [[ -x `which curl` ]]; then
13     function quote()
14     {
15-        Q=$(curl -s --connect-timeout 2 "http://www.quotationspage.com/random.php3" | iconv -c -f ISO-8859-1 -t UTF-8 | grep -m 1 "dt ")
16+        Q=$(curl -s --connect-timeout 2 "http://www.quotationspage.com/random.php" | iconv -c -f ISO-8859-1 -t UTF-8 | grep -m 1 "dt ")
17         TXT=$(echo "$Q" | sed -e 's/<\/dt>.*//g' -e 's/.*html//g' -e 's/^[^a-zA-Z]*//' -e 's/<\/a..*$//g')
18         W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g')
19         if [ "$W" -a "$TXT" ]; then