Commit 8a0cd7dd authored by Lin Jen-Shin's avatar Lin Jen-Shin

Also remove null character

parent 63bf2457
......@@ -536,7 +536,7 @@ class Project < ActiveRecord::Base
def ci_config_file=(value)
# Strip all leading slashes so that //foo -> foo
super(value&.sub(%r{\A/+}, ''))
super(value&.sub(%r{\A/+}, '')&.delete("\0"))
end
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