This is because of the compatibility with previous versions of abraham/twitteroauth.
I believe that the prefix Twist- will never collide with any other libraries., (*30)
Tweets are already escaped... wtf!?
HTML special chars in texts of statuses are already escaped by Twitter like this., (*31)
WARNING:
The flag is ENT_NOQUOTES, not ENT_QUOTES or ENT_COMPAT.
The following snippet may print broken HTML., (*32)
```html+php
, (*33)
You should do like this. <ins>Do not forget to set **4th** parameter into `false`.</ins>
```html+php
<input type="text" name="text" value="<?=htmlspecialchars(status->text, ENT_QUOTES, 'UTF-8', false)?>">
User description contains unescaped &... wtf!?
HTML special chars in others are already sanitized by Twitter like this., (*34)
WARNING: & is not replaced into &.
The following snippet may print broken HTML., (*35)
```html+php
name: =$user->name?> , (*36)
You should do like this.
```html+php
name: <?=htmlspecialchars($user->name, ENT_QUOTES, 'UTF-8')?><br>
cURL causes SSL certificate problem error in Windows!
In the past library, this problem was done with the following solution., (*37)
// You are saying, "Hey libcurl, do not certificate whether I'm really talking to Twitter."
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
However, it makes vulnerability for man-in-the-middle attack. Your connection can be hijacked even if using the protocol https://. This attack can be committed in the following case., (*38)
Some DNS servers' caches are poisoned. Refer to DNS spoofing
You are connecting a public access point that an attacker launched as a trap.
The right way is to download to add CA information to your computer., (*39)
1. Download ca-bundle.crt to save in the directory,
which path should not contain multibyte characters., (*40)
# Good
C:\ca-bundles\ca-bundles.crt
# Bad
C:\Users\田所浩二\Documents\証明書\ca-bundles.crt
2. Add the following definition in php.ini., (*41)