Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(714)

Unified Diff: lib/class.yith-shipping.php

Issue 289320043: Implement support for third-party invoice numbering plugins (YITH PDF Invoices for WooCommerce) Base URL: ssh://open-tools.net/var/www/open-tools.net/private/git/Others/yith-woocommerce-pdf-invoice@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/class.yith-invoice.php ('k') | plugin-options/documents-options.php » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 );
« no previous file with comments | « lib/class.yith-invoice.php ('k') | plugin-options/documents-options.php » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b