Filename parsing is restricted to numbers, letters, and underscores
intchanter - December 10, 2008 - 01:56
| Project: | Imediasee Premium Player |
| Version: | 5.x-2.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Inputting a filename with characters outside the set [0-9a-zA-Z_] gives the error "ImediaseeVideo did not find flv attribute".
For the Drupal 5 version the following regex changes improve the situation somewhat:
Line 80: $embed = preg_replace("|\[ImediaseeVideo\s*\\b([^\]]+)\s*\]|Ui", '[ImediaseeVideo flv="$1"]', $embed);
Line 83: if (preg_match("/\\bflv\s*=\s*(\"(?:[^\\\"]+|\\.)*\"|'(?:[^\\']+|\\.)*')/i", $embed, $matches) == 0) {
This should allow the verbose version of the tag to be wrapped in single or double quotes with escaped quotes of the same kind, if necessary, as well as allowing more flexibility with respect to spaces, punctuation, and so on.
