| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | if ( isset( $this->data[$name] ) ) { |
| 47 | 47 | return $this->data[$name]; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), $name ) ); | |
| 50 | + throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), esc_attr( $name ) ) ); | |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * Set dynamic property |
| @@ -59,9 +59,9 @@ | ||
| 59 | 59 | * @return void |
| 60 | 60 | */ |
| 61 | 61 | public function __set( $key, $value ) { |
| 62 | 62 | if ( ! isset( $this->data[$key] ) ) { |
| 63 | - throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), $key ) ); | |
| 63 | + throw new \Exception( sprintf( esc_html__( 'Undefined property %s', 'timetics' ), esc_attr( $key ) ) ); | |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | $this->data[$key] = $value; |
| 67 | 67 | } |