Skip to content

Commit

Permalink
encode url in .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad88me committed Jul 9, 2023
1 parent f6a7fab commit f087113
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 @@ -42,7 +42,7 @@
import Integrator
import logging
from django.utils import timezone

import urllib.parse

use_database = True

Expand Down Expand Up @@ -1577,6 +1577,7 @@ 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 = urllib.parse.quote(base_url)
new_htaccess = ""

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

0 comments on commit f087113

Please sign in to comment.