Skip to content

Commit

Permalink
encode url in .htaccess properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad88me committed Jul 9, 2023
1 parent f087113 commit 67da891
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OnToology/autoncore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1576,8 +1576,10 @@ def htaccess_github_rewrite(htaccess_content, target_repo, ontology_rel_path):
]
user_username = target_repo.split('/')[0]
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 = "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 = f"https://{base_url}"
new_htaccess = ""

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

0 comments on commit 67da891

Please sign in to comment.