Changeset 1767
- Timestamp:
- 01/21/2008 08:15:21 AM (12 months ago)
- Location:
- trunk/system
- Files:
-
- 4 modified
-
core/Benchmark.php (modified) (1 diff)
-
helpers/feed.php (modified) (1 diff)
-
helpers/form.php (modified) (1 diff)
-
helpers/valid.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Benchmark.php
r1522 r1767 2 2 /** 3 3 * Simple benchmarking. 4 * 4 * 5 5 * $Id$ 6 6 * -
trunk/system/helpers/feed.php
r1725 r1767 28 28 29 29 // Allow loading by filename or raw XML string. 30 $feed = is_file($feed) ? simplexml_load_file($feed) : simplexml_load_string($feed);30 $feed = (is_file($feed) OR valid::url($feed)) ? simplexml_load_file($feed) : simplexml_load_string($feed); 31 31 32 32 // Restore error reporting -
trunk/system/helpers/form.php
r1762 r1767 31 31 } 32 32 33 if (empty($action) )33 if (empty($action) OR ! is_string($action)) 34 34 { 35 35 // Use the current URL as the default action -
trunk/system/helpers/valid.php
r1764 r1767 64 64 $scheme = strtolower($scheme); 65 65 66 // Disable error reporting 67 $ER = error_reporting(0); 68 66 69 // Use parse_url to validate the URL 67 $url = @parse_url($url); 70 $url = parse_url($url); 71 72 // Restore error reporting 73 error_reporting($ER); 68 74 69 75 // If the boolean check returns TRUE, return FALSE, and vice versa
