| Conditions | 6 |
| Paths | 5 |
| Total Lines | 21 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 57 | private function analyzeURL(string $url) : void |
||
| 58 | { |
||
| 59 | if(stristr($url, 'tel:')) |
||
| 60 | { |
||
| 61 | return; |
||
| 62 | } |
||
| 63 | |||
| 64 | $placeholders = $this->safeguard->getPlaceholders(); |
||
| 65 | |||
| 66 | foreach($placeholders as $placeholder) |
||
| 67 | { |
||
| 68 | $command = $placeholder->getCommand(); |
||
| 69 | |||
| 70 | if(!$command->supportsURLEncoding()) |
||
| 71 | { |
||
| 72 | continue; |
||
| 73 | } |
||
| 74 | |||
| 75 | if(strstr($url, $placeholder->getReplacementText()) && !$command->isURLDecoded()) |
||
| 76 | { |
||
| 77 | $command->setURLEncoding(true); |
||
| 78 | } |
||
| 82 |