Skip to content

Commit

Permalink
Merge pull request #660 from OnToology/spaces
Browse files Browse the repository at this point in the history
escape spaces in .htaccess
  • Loading branch information
ahmad88me committed Jul 9, 2023
2 parents 5378264 + 7f35134 commit fb5d757
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OnToology/autoncore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1578,8 +1578,9 @@ def htaccess_github_rewrite(htaccess_content, target_repo, ontology_rel_path):
repo_name = target_repo.split('/')[1]
# base_url = "https://%s.github.io/%s/OnToology/%s/documentation/" % (user_username, repo_name, ontology_rel_path)
base_url = "%s.github.io/%s/OnToology/%s/documentation/" % (user_username, repo_name, ontology_rel_path)
base_url = urllib.parse.quote(base_url)
# base_url = urllib.parse.quote(base_url)
base_url = f"https://{base_url}"
base_url = base_url.replace(' ', '\\ ')
new_htaccess = ""

for line in htaccess_content.split('\n'):
Expand Down

0 comments on commit fb5d757

Please sign in to comment.