mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 23:32:53 +00:00
Fix Notepad++ 404
This commit is contained in:
parent
1910e162ef
commit
c4a2715327
2 changed files with 9 additions and 3 deletions
|
|
@ -38,8 +38,8 @@ class DocsController < ApplicationController
|
|||
# Remove leading/trailing slashes and dangerous characters
|
||||
clean_path = path.to_s.gsub(/\A\/+|\/+\z/, "").gsub(/\.\./, "")
|
||||
|
||||
# Only allow alphanumeric characters, hyphens, underscores, and forward slashes
|
||||
clean_path = clean_path.gsub(/[^a-zA-Z0-9\-_\/]/, "")
|
||||
# Only allow alphanumeric characters, hyphens, underscores, plus signs, and forward slashes
|
||||
clean_path = clean_path.gsub(/[^a-zA-Z0-9\-_+\/]/, "")
|
||||
|
||||
# Ensure we don't have empty path
|
||||
clean_path.present? ? clean_path : "index"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,13 @@ Visit the [setup page](https://hackatime.hackclub.com/my/wakatime_setup) to auto
|
|||
|
||||
## Step 3: Install Notepad++ Plugin
|
||||
|
||||
Follow the detailed plugin installation instructions on the [WakaTime Notepad++ page](https://wakatime.com/notepad++).
|
||||
Follow the detailed plugin installation instructions:
|
||||
|
||||
1. Inside Notepad++ open the Plugins Admin (`Plugins` → `Plugins Admin`).
|
||||
2. Search for `WakaTime` and then check the box in the list of plugins.
|
||||
3. Click the Install button.
|
||||
4. Restart Notepad++.
|
||||
5. Enter your API key when prompted (this will be automatically configured if you completed Step 2).
|
||||
|
||||
The WakaTime plugin will automatically use your Hackatime configuration after running the setup script.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue