| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | |
| 97 | 97 | $labels[ $i ] = $this->toUTF8( $labels[ $i ] ); |
| 98 | 98 | |
| 99 | 99 | $this->_series[] = array( |
| 100 | - 'label' => $labels[ $i ], | |
| 100 | + 'label' => sanitize_text_field( wp_strip_all_tags( $labels[ $i ] ) ), | |
| 101 | 101 | 'type' => isset( $types[ $i ] ) ? $types[ $i ] : $default_type, |
| 102 | 102 | ); |
| 103 | 103 | } |
| 104 | 104 | |
| @@ -114,10 +114,8 @@ | ||
| 114 | 114 | * @param string $filename Optional file name to get handle. If omitted, $_filename is used. |
| 115 | 115 | * @return resource File handle resource on success, otherwise FALSE. |
| 116 | 116 | */ |
| 117 | 117 | protected function _get_file_handle( $filename = false ) { |
| 118 | - // set line endings auto detect mode | |
| 119 | - ini_set( 'auto_detect_line_endings', true ); | |
| 120 | 118 | // open file and return handle |
| 121 | 119 | return fopen( $filename ? $filename : $this->_filename, 'rb' ); |
| 122 | 120 | } |
| 123 | 121 | |