Write safety

Writing a translation

saveTranslation modifies a customer language file: it applies strict guards before any write.

  • Only accepts a PrestaShop-format id (md5)
  • Refuses a missing or non-writable file
  • Creates the <target> if absent
  • Marks the unit approved="yes"
  • Re-escapes special characters via DOMDocument
Loading...
Back to top