scratch – Diff between revs 90 and 91

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 90 Rev 91
Line 157... Line 157...
157 case "HTM": 157 case "HTM":
158 header('Content-type: text/html'); 158 header('Content-type: text/html');
159 break; 159 break;
160 break; 160 break;
161 case "URL": 161 case "URL":
-   162 if(preg_match(
-   163 "/URL=(https?:\/\/[\-_\.\+!\*'\(\),a-zA-Z0-9]+:?[0-9]{0,5}\/.*?)\n/",
162 if(preg_match("/URL=([^\n]*)\n/", file_get_contents($userPath), $matches)) { 164 file_get_contents($userPath), $matches)) {
163 header('Location: '.$matches[1]); 165 header('Location: '.$matches[1]);
164 return; 166 return;
165 } 167 }
166 break; 168 break;
167 default: 169 default: