Repository navigation
fix(symbols): harden safe_ticker_component against '..' traversal, guard dotenv import, and add GCC/MENA currencies & aliases - #1711
Open
mlubbad wants to merge 2 commits into
Conversation
…ersal and add GCC/MENA currencies & aliases
… aliases Signed-off-by: Dr. Mohammed Lubbad <engmlubbad@gmail.com>
Author
|
Retargeted the base branch to |
mihaidimoiu
added a commit
to mihaidimoiu/TradingAgents
that referenced
this pull request
Nov 28, 2026
…e dependencies Upstream's main is a TypeScript rewrite since 1.0.0; the Python line is its 0.7.x branch, merged before this. From the open Python pull requests: - TauricResearch#1671 yfinance floor 1.8.0 - TauricResearch#1680 ChatGPT plan: keep the arguments of tool calls made in one turn - TauricResearch#1681 global news searched by phrase and spread across the topics - TauricResearch#1682 a windowed indicator is reported only once its window is full - TauricResearch#1686 the price history window is anchored at the analysis date and the cache records the span it was downloaded for (the legacy-cache check guarded against a file with no Date column; its tests no longer depend on the day they run) - TauricResearch#1694 Yahoo's free cash flow labelled levered, the standard figure printed from the cash-flow statement - TauricResearch#1695 replace_file removes its temporary file when the write fails - TauricResearch#1707 Yahoo price rows with no close are dropped and named - TauricResearch#1711 safe_ticker_component refuses a leading dot and '..'; Gulf currencies (its aliases and its dotenv guard left out) - TauricResearch#1716 an OpenAI-compatible server may be asked for the Responses API, with the environment variable the pull request lacked
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tradingagents/dataflows/symbols.py): Tightenssafe_ticker_component()to reject any value starting with.or containing..(e.g.,.env,a..b), closing path-traversal edge cases that previously bypassedset(value) == {'.'}.symbols.py): Adds Gulf/MENA ISO-4217 currencies (SAR,AED,QAR,OMR,KWD,BHD,EGP,JOD) to_FOREX_CURRENCIESand major regional equity aliases (Tadawul, QSE, MSX, DFM, BIST).tradingagents/__init__.py): Wrapsload_dotenvintry ... except ImportErrorso lightweight environments withoutpython-dotenvcan still import the package cleanly.Verification
safe_ticker_componentrejects.hiddenanda..b, resolvesSARUSD/ARAMCO/THYAO, and imports cleanly withoutpython-dotenv.