BigW Consortium Gitlab

Commit 8a0cd7dd by Lin Jen-Shin

Also remove null character

parent 63bf2457
...@@ -536,7 +536,7 @@ class Project < ActiveRecord::Base ...@@ -536,7 +536,7 @@ class Project < ActiveRecord::Base
def ci_config_file=(value) def ci_config_file=(value)
# Strip all leading slashes so that //foo -> foo # Strip all leading slashes so that //foo -> foo
super(value&.sub(%r{\A/+}, '')) super(value&.sub(%r{\A/+}, '')&.delete("\0"))
end end
def import_url=(value) def import_url=(value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment