|
@@ 5086-5092 (lines=7) @@
|
| 5083 |
|
# Special case; width and height come in one variable together |
| 5084 |
|
if ( $type === 'handler' && $paramName === 'width' ) { |
| 5085 |
|
$parsedWidthParam = $this->parseWidthParam( $value ); |
| 5086 |
|
if ( isset( $parsedWidthParam['width'] ) ) { |
| 5087 |
|
$width = $parsedWidthParam['width']; |
| 5088 |
|
if ( $handler->validateParam( 'width', $width ) ) { |
| 5089 |
|
$params[$type]['width'] = $width; |
| 5090 |
|
$validated = true; |
| 5091 |
|
} |
| 5092 |
|
} |
| 5093 |
|
if ( isset( $parsedWidthParam['height'] ) ) { |
| 5094 |
|
$height = $parsedWidthParam['height']; |
| 5095 |
|
if ( $handler->validateParam( 'height', $height ) ) { |
|
@@ 5093-5099 (lines=7) @@
|
| 5090 |
|
$validated = true; |
| 5091 |
|
} |
| 5092 |
|
} |
| 5093 |
|
if ( isset( $parsedWidthParam['height'] ) ) { |
| 5094 |
|
$height = $parsedWidthParam['height']; |
| 5095 |
|
if ( $handler->validateParam( 'height', $height ) ) { |
| 5096 |
|
$params[$type]['height'] = $height; |
| 5097 |
|
$validated = true; |
| 5098 |
|
} |
| 5099 |
|
} |
| 5100 |
|
# else no validation -- bug 13436 |
| 5101 |
|
} else { |
| 5102 |
|
if ( $type === 'handler' ) { |