Skip to content
Snippets Groups Projects
Commit 8a0cd7dd authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Also remove null character

parent 63bf2457
No related branches found
No related tags found
No related merge requests found
Loading
@@ -536,7 +536,7 @@ class Project < ActiveRecord::Base
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment