Index: lib/class.yith-shipping.php |
diff --git a/lib/class.yith-shipping.php b/lib/class.yith-shipping.php |
index 2900f02a0ac15282452862736d2fa67f64253467..7375be27032d77a90a0d417d31c350da1a2635e3 100644 |
--- a/lib/class.yith-shipping.php |
+++ b/lib/class.yith-shipping.php |
@@ -77,7 +77,7 @@ if ( ! class_exists( 'YITH_Shipping' ) ) { |
return; |
} |
- $this->save_path = $this->document_type . "_" . $this->order->get_order_number() . ".pdf"; |
+ $this->save_path = sanitize_file_name( $this->document_type . "_" . $this->order->get_order_number() . ".pdf" ); |
$this->exists = true; |
update_post_meta( $this->order->id, '_ywpi_has_shipping_list', $this->exists ); |