<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zsh.git/plugins/rand-quote, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cnjoe.info/git/zsh.git/atom/plugins/rand-quote?h=master</id>
<link rel='self' href='http://cnjoe.info/git/zsh.git/atom/plugins/rand-quote?h=master'/>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/'/>
<updated>2025-03-20T10:22:12Z</updated>
<entry>
<title>fix(ranq-quote): use https for quote retrieval (#13021)</title>
<updated>2025-03-20T10:22:12Z</updated>
<author>
<name>Linda TJ</name>
<email>sameer.tuteja05@gmail.com</email>
</author>
<published>2025-03-20T10:22:12Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=34e9830dd399b6e068e41907def76a7e97653219'/>
<id>urn:sha1:34e9830dd399b6e068e41907def76a7e97653219</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(plugins): fix potential command injection in `rand-quote` and `hitokoto`</title>
<updated>2021-11-11T21:45:24Z</updated>
<author>
<name>Marc Cornellà</name>
<email>hello@mcornella.com</email>
</author>
<published>2021-11-09T08:31:09Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=72928432f1ddaa244e02067dd7fc14948a4a5ce4'/>
<id>urn:sha1:72928432f1ddaa244e02067dd7fc14948a4a5ce4</id>
<content type='text'>
The `rand-quote` plugin uses quotationspage.com and prints part of its content to the
shell without sanitization, which could trigger command injection. There is no evidence
that this has been exploited, but this commit removes all possibility for exploit.

Similarly, the `hitokoto` plugin uses the hitokoto.cn website to print quotes to the
shell, also without sanitization. Furthermore, there is also no evidence that this has
been exploited, but with this change it is now impossible.
</content>
</entry>
<entry>
<title>rand-quote: refactor rand-quote function</title>
<updated>2018-06-29T16:16:10Z</updated>
<author>
<name>Marc Cornellà</name>
<email>marc.cornella@live.com</email>
</author>
<published>2018-06-29T16:16:10Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=76bfa7dd2a5422569c48ceb5429fb31adf1f23c2'/>
<id>urn:sha1:76bfa7dd2a5422569c48ceb5429fb31adf1f23c2</id>
<content type='text'>
- Make function variables local
- Use prompt color sequences
- Use guard clause to check for curl
- Improved syntax</content>
</entry>
<entry>
<title>rand-quote: add README</title>
<updated>2018-06-29T15:55:55Z</updated>
<author>
<name>Marc Cornellà</name>
<email>marc.cornella@live.com</email>
</author>
<published>2018-06-29T15:55:55Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=1e255a1a8d19f713482c7f2caa639733e8f86b39'/>
<id>urn:sha1:1e255a1a8d19f713482c7f2caa639733e8f86b39</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rand-quote: update URL</title>
<updated>2018-06-29T15:50:32Z</updated>
<author>
<name>Marc Cornellà</name>
<email>marc.cornella@live.com</email>
</author>
<published>2018-06-29T15:50:32Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=787c6899d4db04b3e6cef9a02c6a2ff3d896ece3'/>
<id>urn:sha1:787c6899d4db04b3e6cef9a02c6a2ff3d896ece3</id>
<content type='text'>
Fixes #6949</content>
</entry>
<entry>
<title>Remove code, not comment it out</title>
<updated>2015-08-26T18:12:42Z</updated>
<author>
<name>Robin Daugherty</name>
<email>robin@robindaugherty.net</email>
</author>
<published>2015-08-26T18:12:38Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=96aefd2b98e5a646573a0ad6394f6ca0276facf1'/>
<id>urn:sha1:96aefd2b98e5a646573a0ad6394f6ca0276facf1</id>
<content type='text'>
Gaaah.
</content>
</entry>
<entry>
<title>Fix rand-quote failure when site is unreachable</title>
<updated>2015-08-26T17:24:59Z</updated>
<author>
<name>Robin Daugherty</name>
<email>robin@robindaugherty.net</email>
</author>
<published>2015-08-26T17:24:59Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=241be2d28b41293f163c4be75bb122975c2eacd9'/>
<id>urn:sha1:241be2d28b41293f163c4be75bb122975c2eacd9</id>
<content type='text'>
This plugin was designed so that if there is any failure, it will simply call itself recursively. Which means that if you were working offline, if `quote` was called in your `.zshrc`, you would be unable to open a new terminal session.

I fixed this by allowing the plugin to output nothing if a quote could not be fetched.
</content>
</entry>
<entry>
<title>randquote plugin</title>
<updated>2013-10-31T12:38:12Z</updated>
<author>
<name>Eduardo San Martin Morote</name>
<email>posva13@gmail.com</email>
</author>
<published>2013-10-31T12:38:12Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=37be62ffb7856cda96a187f4acf79afe2fed2514'/>
<id>urn:sha1:37be62ffb7856cda96a187f4acf79afe2fed2514</id>
<content type='text'>
correcting an issue about encoding some people was having
added a message when the user doesn't have curl
added varibles for colors-&gt;easier to customize
</content>
</entry>
<entry>
<title>Messed up the comment somehow...</title>
<updated>2013-06-09T09:04:39Z</updated>
<author>
<name>San Martin Morote Eduardo</name>
<email>posva13@gmail.com</email>
</author>
<published>2013-06-09T09:04:39Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=60aa92bae3a589af93d8a52443f01609b81cd4ab'/>
<id>urn:sha1:60aa92bae3a589af93d8a52443f01609b81cd4ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Random quotes from the internet</title>
<updated>2013-06-09T09:01:20Z</updated>
<author>
<name>San Martin Morote Eduardo</name>
<email>posva13@gmail.com</email>
</author>
<published>2013-06-09T09:01:20Z</published>
<link rel='alternate' type='text/html' href='http://cnjoe.info/git/zsh.git/commit/?id=e4884da5a09b121a43121c79449e4cfae7a5c9d0'/>
<id>urn:sha1:e4884da5a09b121a43121c79449e4cfae7a5c9d0</id>
<content type='text'>
</content>
</entry>
</feed>
