- if (strpos ($feature->imgurl, "http://") === 0) {
- $imgurl = "http://" . rawurlencode (substr($feature->imgurl, 7));
- } else if (strpos ($feature->imgurl, "https://") === 0) {
- $imgurl = "https://" . rawurlencode (substr ($feature->imgurl, 8));
- } else {
- $imgurl = rawurlencode ($feature->imgurl);
- }
- $imgurl = str_replace ('%2F', '/', $imgurl);