Changeset 4771
- Timestamp:
- Dec 20, 2007, 12:23:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OpenPNE/trunk/webapp/lib/OpenPNE/Smarty.php
r4761 r4771 133 133 $display_size = explode('*', $_SERVER['HTTP_X_JPHONE_DISPLAY']); 134 134 135 if (!ctype_digit($display_size[0]) ) {135 if (!ctype_digit($display_size[0]) || (intval($display_size[0]) < 0)) { 136 136 return $tpl_output; 137 137 } 138 138 139 139 $pattern_start_tag = '<table width="100%"'; 140 $replacement_start_tag = '<table width="' . $display_size[0]. '"';140 $replacement_start_tag = '<table width="' . intval($display_size[0]) . '"'; 141 141 $tpl_output = str_replace($pattern_start_tag, $replacement_start_tag, $tpl_output); 142 142 }
Note: See TracChangeset
for help on using the changeset viewer.