]> BookStack Code Mirror - bookstack/blobdiff - app/Uploads/Attachment.php
move zip export into exportservice
[bookstack] / app / Uploads / Attachment.php
index 8720d3c098e74eb96c0890dc174089de43f8be70..3f0b447df7388a573602396d052bce2e5c5bca7a 100644 (file)
@@ -13,7 +13,7 @@ class Attachment extends Ownable
      */
     public function getFileName()
     {
-        if (str_contains($this->name, '.')) {
+        if (strpos($this->name, '.') !== false) {
             return $this->name;
         }
         return $this->name . '.' . $this->extension;